Sandbox

Sandbox Deposit

Credits the account with funds in sandbox environment only.

post/v1/sandbox_deposit

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/sandbox_deposit
  • Auth
    • HTTP bearer
    • or API key in header ONDO-KEY-ID

Request body

amountstring required

Deposit amount as a decimal string

symbolstring required

Token symbol

chain_id'avax-c-chain' | 'avax-fuji-c-chain' | 'eth-mainnet' | 'eth-sepolia' | 'btc-mainnet' | 'btc-testnet' | 'sol-mainnet' | 'sol-testnet' | 'bsc-mainnet' | 'bsc-testnet' required

Chain ID for the deposit

Example request

{
  "amount": "1000.00",
  "symbol": "USDC",
  "deposit_destination": {
    "id": "10458932786832481",
    "wallet": "margin"
  },
  "chain_id": "eth-mainnet"
}

Response

Deposit result

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

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

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 2 revisions of this API.