Stablecoins

Keyrails APIs provide a seamless way to manage cryptocurrency deposit and withdrawal capabilities.

Supported Crypto Assets

See supported stablecoins & Blockchains
BlockchainToken EnumsMainnet EnumsTestnet Enums
EthereumUSDC, USDTmainnetsepolia

Get Crypto Deposit Address (for transfers in)

See API Reference
curl --request GET \
  --url https://api.sandbox.keyrails.com/api/v1/current-tenant/crypto-instruction/sepolia/usdc \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{AccessToken}}'

Example response:

{
  "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  "assetFiatType": "Usdc",
  "networkChain": "Sepolia",
  "address": "string"
}

Crypto Withdrawal

See API Reference
curl --request POST \
  --url https://api.sandbox.keyrails.com/api/v1/transfers \
  --header 'Accept: application/json, application/xml' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{AccessToken}}' \
  --data '{
    "assetType": "CryptoCurrency",
    "asset": "Usdc",
    "network": "Sepolia", // or Mainnet for production
    "amount": 1,
    "to": {
      "type": "Address",
      "id": "0xXXXXXXXXXXXX",
    },
    "comment": "string"
  }'