POST
https://api.stableyard.fi
/
sdk
/
v1
/
get-deposit-address
curl -X POST https://api.stableyard.fi/sdk/v1/get-deposit-address \
  -H "x-sdk-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "paymentAddress": "alice@stableyard",
    "rawAmount": "100000000",
    "sourceAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f...",
    "sourceChainId": 1,
    "sourceChainToken": "USDC"
  }'
{
  "success": true,
  "data": {
    "depositAddress": "0xabcdef1234567890abcdef1234567890abcdef12",
    "quote": {
      "inputAmount": "100.00",
      "inputToken": "USDC",
      "inputChain": "Ethereum",
      "outputAmount": "99.50",
      "outputToken": "USDC",
      "outputChain": "Base",
      "fee": "0.50",
      "expiresAt": "2024-01-15T11:00:00Z"
    },
    "quoteId": "quote_deposit_xyz789"
  },
  "requestId": "req_xyz789"
}
Generate a deposit address for receiving cross-chain transfers.

Authentication

x-sdk-key
string
required
Your API authentication key

Body Parameters

paymentAddress
string
required
Recipient’s payment address (e.g., alice@stableyard)
rawAmount
string
required
Amount in smallest units (e.g., “100000000” for 100 USDC)
sourceAddress
string
required
Sender’s wallet address
sourceChainId
number
required
Source chain ID (e.g., 1 for Ethereum)
sourceChainToken
string
required
Source token symbol (e.g., “USDC”)

Response

success
boolean
Indicates if the request was successful
data
object
Deposit address and quote data
curl -X POST https://api.stableyard.fi/sdk/v1/get-deposit-address \
  -H "x-sdk-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "paymentAddress": "alice@stableyard",
    "rawAmount": "100000000",
    "sourceAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f...",
    "sourceChainId": 1,
    "sourceChainToken": "USDC"
  }'
{
  "success": true,
  "data": {
    "depositAddress": "0xabcdef1234567890abcdef1234567890abcdef12",
    "quote": {
      "inputAmount": "100.00",
      "inputToken": "USDC",
      "inputChain": "Ethereum",
      "outputAmount": "99.50",
      "outputToken": "USDC",
      "outputChain": "Base",
      "fee": "0.50",
      "expiresAt": "2024-01-15T11:00:00Z"
    },
    "quoteId": "quote_deposit_xyz789"
  },
  "requestId": "req_xyz789"
}