ProtectedaccountProtected OptionalappProtectedenvironmentProtectedenvironmentProtectedheliconeProtectednvmProtectedreturnProtectedschemeProtected OptionalversionCreate a new delegation for either stripe or erc4337 provider.
The delegation creation parameters
The created delegation ID (and token for card delegations)
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
Get the agent's purchasing power — accessible cards, active delegations, and combined remaining budget.
List the user's existing delegations.
When accessible: true, only usable delegations (Active, non-expired, with budget) are returned.
Optionaloptions: ListOptionsList the user's enrolled payment methods for card delegation.
When accessible: true, only cards accessible to the requesting API key are returned.
Optionaloptions: ListOptionsProtectedparseUpdate a payment method's alias and/or allowed API keys.
Staticget
API for managing payment methods and delegations (card and crypto).