ProtectedaccountProtected OptionalappProtectedenvironmentProtectedenvironmentProtectedheliconeProtectednvmProtectedreturnProtectedschemeProtected OptionalversionStatica2aStatic A2A helpers and utilities. Example: Payments.a2a.buildPaymentAgentCard(...)
Exposes A2A server and client registry methods. The client registry is initialized only if getClient is called.
Gets (or creates) a RegisteredPaymentsClient for the given alias. The registry is initialized only on first use.
Starts the A2A server with payment integration.
Returns the Delegation API for listing enrolled payment methods. The instance is lazily initialized on first access.
Returns the MCP integration API. The instance is memoized so that configuration
set via configure({ agentId, serverName }) persists across calls.
It returns the account address associated with the NVM API Key used to initialize the Payments Library instance.
The account address extracted from the NVM API Key
ProtectedgetInternalReturns the HTTP options required to query the backend.
HTTP method.
Optionalbody: anyOptional request body.
HTTP options object.
Returns the environment name used to initialize the Payments instance.
The environment name (e.g. 'sandbox', 'live')
ProtectedgetInternalGet HTTP options for public backend requests (no authorization header). Converts body keys from snake_case to camelCase for consistency.
HTTP method
Optionalbody: anyOptional request body (keys will be converted to camelCase)
HTTP options object
ProtectedparseStaticgetGet an instance of the Payments class for browser usage.
The options to initialize the payments class.
An instance of Payments
StaticgetGet an instance of the Payments class for server-side usage.
The options to initialize the payments class.
An instance of Payments
Main class that interacts with the Nevermined payments API. Use
Payments.getInstancefor server-side usage orPayments.getBrowserInstancefor browser usage.Remarks
This API requires a Nevermined API Key, which can be obtained by logging in to the Nevermined App.
The library provides methods to manage AI Agents, Plans & process AI Agent Requests.
Each of these functionalities is encapsulated in its own API class:
plans: Manages AI Plans, including registration and ordering and retrieving plan details.agents: Handles AI Agents, including registration of AI Agents and access token generation.requests: Manages requests received by AI Agents, including validation and tracking.observability: Provides observability and logging utilities for AI Agents with Helicone integration