Protected accountProtected Optional appProtected environmentProtected environmentProtected heliconeProtected nvmProtected returnProtected schemeProtected Optional versionCreate a new delegation for either stripe or erc4337 provider.
The delegation creation parameters
The created delegation ID (and token for card delegations)
Private fetchJSONProtected getReturns the environment name used to initialize the Payments instance.
The environment name (e.g. 'sandbox', 'live')
Protected getInternal Get HTTP options for public backend requests (no authorization header). Converts body keys from snake_case to camelCase for consistency.
HTTP method
Optional body: anyOptional request body (keys will be converted to camelCase)
HTTP options object
Optional body?: stringGet 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.
Optional options: ListOptionsList the user's enrolled payment methods for card delegation.
When accessible: true, only cards accessible to the requesting API key are returned.
Optional options: ListOptionsProtected parseUpdate a payment method's alias and/or allowed API keys.
Static get
API for managing payment methods and delegations (card and crypto).