cURL
curl --request POST \ --url https://public-api-v2.bags.fm/api/v1/agent/wallet/export \ --header 'Content-Type: application/json' \ --data ' { "token": "<string>", "walletAddress": "<string>" } '
{ "success": true, "response": { "privateKey": "<string>" } }
Exports the private key for a specific wallet owned by the authenticated agent.
Security Warning: This endpoint returns actual private keys. Use sparingly and ensure private keys are stored securely. Never log or expose private keys.
JWT token from login
Base58-encoded Solana public key of the wallet to export
Successfully exported wallet private key
true
Show child attributes