Skip to content

Rotate the deposit address

POST
/address/rotate

Queues a replacement of the deposit address. The new address is assigned automatically, usually within 5 minutes.

Once the rotation completes, the previous address stops accepting deposits. So withdraw the remaining balance from it before requesting the rotation, and update your address in every external system afterwards.

You may always rotate your own address; a parent account may rotate its sub-user's; someone else's address cannot be rotated.

Only one rotation may be queued per user and address type within seven days; a repeat request is rejected with 409.

Authorizations

ApiKeyAuth

API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.

Type
API Key (header: X-API-KEY)

Parameters

Header Parameters

X-Real-IP*

An IP address from the key's whitelist. A request from an address outside the whitelist is rejected with 401.

Type
string
Required
Example"203.0.113.10"
Format
"ipv4"

Request Body

application/json
JSON
{
  
"user_id": 0,
  
"address_type": "web"
}

Responses

The request was queued.

application/json
JSON
{
  
"rotation_id": 0,
  
"user_id": 0,
  
"address_type": "string",
  
"old_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
  
"new_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
  
"status": "string",
  
"message": "string",
  
"estimated_completion": "string",
  
"created_at": "string",
  
"completed_at": "string"
}

Playground

Authorization
Headers
Body

Samples

Powered by VitePress OpenAPI