Solrouter
API ReferenceManaged Wallets

Build an unsigned funding tx for the agent to sign

Returns an unsigned base64 transaction that moves tokens from the agent's own wallet into the managed wallet. The agent signs and broadcasts it.

POST
/agents/v1/wallets/{id}/fund-intent
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/agents/v1/wallets/f47ac10b-58cc-4372-a567-0e02b2c3d479/fund-intent" \  -H "Content-Type: application/json" \  -d '{    "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",    "amount": "1000000",    "payerPubkey": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"  }'
{
  "tx": "AQAB...base64...",
  "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "1000000",
  "to": "umbra1q9c0ffee7p3rh4z8x2v6m5k0n9d3w7s2a1b4c8e6f0g"
}
{
  "error": "missing_required_fields"
}