Skip to main content
POST
/
agent
/
wallet
/
export
Export agent wallet private key
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>"
  }
}

Body

application/json
token
string
required

JWT token from login

walletAddress
string
required

Base58-encoded Solana public key of the wallet to export

Response

Successfully exported wallet private key

success
boolean
required
Example:

true

response
object