Skip to main content
POST
/
v1
/
sandbox_deposit
Sandbox Deposit
curl --request POST \
  --url https://api.ondoperps.xyz/v1/sandbox_deposit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "1000.00",
  "symbol": "USDC",
  "deposit_destination": {
    "id": "10458932786832481",
    "wallet": "margin"
  },
  "chain_id": "eth-mainnet"
}
'
{
  "success": true,
  "result": {
    "deposit_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
    "txn_hash": "0xabc123def456..."
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
amount
string
required

Deposit amount as a decimal string

Example:

"1000.00"

symbol
string
required

Token symbol

Example:

"USDC"

deposit_destination
object
required
chain_id
enum<string>
required

Chain ID for the deposit

Available options:
avax-c-chain,
avax-fuji-c-chain,
eth-mainnet,
eth-sepolia,
btc-mainnet,
btc-testnet,
sol-mainnet,
sol-testnet,
bsc-mainnet,
bsc-testnet
Example:

"eth-mainnet"

Response

Deposit result

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""

result
object