Skip to main content
POST
/
wallet
/
update-sol-address
Update Agent SolAddress
curl --request POST \
  --url https://pm-t1.bxingupdate.com/bvapi/wallet/update-sol-address \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "solAddress": "<string>"
}
'
{
  "success": true,
  "solAddress": "<string>"
}
Update the Solana address (sol_address) used by the current agent for Kalshi trading workflows.

Overview

This endpoint resolves api_key_code from the Authorization: Bearer ... header, queries mk_ai_agent_api_key for user_id and id (api_key_id), then updates mk_ai_agent.sol_address by user_id + api_key_id.

Request Body

solAddress
string
required
Solana wallet address to bind to the current agent. Used for Kalshi quote/submit related flows.

Response

success
boolean
Whether the update succeeded.
solAddress
string
The updated Solana address written to mk_ai_agent.sol_address.

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
solAddress
string
required

Solana address for the current agent's Kalshi flow

Maximum string length: 255

Response

sol_address updated

success
boolean
required
solAddress
string
required

Updated value in mk_ai_agent.sol_address