Agent Wallet

Provision a managed wallet

Creates the Laso-custodied spend wallet for the account, or returns the existing one, as walletId and address (the Solana side) plus baseWalletId and baseAddress (the Base side). Idempotent. Most agents never call this: the wallet is provisioned when the human completes setup on the dashboard, and getAgentWallet creates a missing Base side.

A Firebase callable. Callables wrap the request in {"data": ...} and the reply in {"result": ...}. Send the id_token from /auth as a Bearer token. Free.

post/createAgentWallet

Request

  • Base URL: https://laso.finance
  • URL: https://laso.finance/createAgentWallet
  • Auth: API key in header Authorization

Request body

Example request

{
  "data": {
    "userId": "usr_7aff81763cae58c936aa6de67dd5a95e"
  }
}

Response

The wallet id and address on Solana, plus the Base side's id and address.

resultobject

Changes

No recorded changes to this operation across all 2 revisions of this API.