Across Docs

Get a deposit address

Returns a permanent deposit address for one destination token and recipient. The user funds it with a plain token transfer, from any wallet or exchange, of a token listed in supportedInputs on its chain. Across picks the deposit up, prices the amount that arrived and delivers it to destination.recipient. There is no quote to sign and nothing to execute. The same request always returns the same address, so call it again whenever you need to show the address. A different destination token, recipient or refund address gives a different address. Addresses never expire, but the fees, limits and inputs shown with them change: read them fresh each time you show the address. One EVM address serves every EVM chain listed in supportedInputs. Deposits that cannot be delivered go back to the evm refund address on the chain they arrived on. Requires the deposit-address permission on your API key; without it every request answers 403 permission.not_entitled. Track deposits with GET /v1/transfers?depositAddress=....

POST
/v1/deposit-addresses

Authorization

bearerAuth
AuthorizationBearer <token>

API key for authentication.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/deposit-addresses" \  -H "Content-Type: application/json" \  -d '{    "destination": {      "token": {        "chainId": 1337,        "address": "0x2100000000000000000000000000000000000000"      },      "recipient": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"    },    "refundAddresses": [      {        "namespace": "evm",        "address": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"      }    ]  }'
{
  "destination": {
    "token": {
      "kind": "token",
      "chainId": 1337,
      "address": "0x2100000000000000000000000000000000000000",
      "symbol": "USDC-PERPS",
      "name": "USDC (Perps)",
      "decimals": 8,
      "explorerUrl": "https://app.hyperliquid.xyz/explorer/token/0x2100000000000000000000000000000000000000",
      "chain": {
        "chainId": 1337,
        "name": "hypercore",
        "displayName": "HyperCore",
        "namespace": "evm",
        "explorerUrl": "https://app.hyperliquid.xyz/explorer",
        "logoUrl": "https://alexandria.across.to/assets/chains/hypercore.svg",
        "nativeToken": {
          "symbol": "HYPE",
          "decimals": 18
        },
        "publicRpcUrl": "https://api.hyperliquid.xyz"
      }
    },
    "recipient": {
      "namespace": "evm",
      "address": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"
    }
  },
  "refundAddresses": [
    {
      "namespace": "evm",
      "address": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"
    }
  ],
  "expiresAt": null,
  "depositInstructions": [
    {
      "depositAddress": {
        "namespace": "evm",
        "address": "0x137CbCC17B10d966C9904a66BB5e81727714f253"
      },
      "supportedInputs": [
        {
          "originChainId": 42161,
          "inputToken": {
            "kind": "token",
            "chainId": 42161,
            "address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
            "symbol": "USDC",
            "name": "USD Coin",
            "decimals": 6,
            "explorerUrl": "https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831",
            "priceUsd": 0.999999,
            "chain": {
              "chainId": 42161,
              "name": "arbitrum-one",
              "displayName": "Arbitrum One",
              "namespace": "evm",
              "explorerUrl": "https://arbiscan.io",
              "logoUrl": "https://alexandria.across.to/assets/chains/arbitrum.svg",
              "nativeToken": {
                "symbol": "ETH",
                "decimals": 18
              },
              "publicRpcUrl": "https://arb1.arbitrum.io/rpc"
            }
          },
          "pricingStatus": "available",
          "limits": {
            "minInputAmount": "5000005",
            "maxInputAmount": "10000000000000"
          },
          "indicativeFees": {
            "proportionalPct": "100400033640104",
            "flatUsd": 0.01949929869
          },
          "maximumFees": {
            "proportionalPct": "500000000000000000",
            "flatUsd": 0
          },
          "indicativeFillTimeRange": {
            "min": 9,
            "max": 52
          }
        },
        {
          "originChainId": 8453,
          "inputToken": {
            "kind": "token",
            "chainId": 8453,
            "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
            "symbol": "USDC",
            "name": "USD Coin",
            "decimals": 6,
            "explorerUrl": "https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
            "priceUsd": 0.999999,
            "chain": {
              "chainId": 8453,
              "name": "base",
              "displayName": "Base",
              "namespace": "evm",
              "explorerUrl": "https://basescan.org",
              "logoUrl": "https://alexandria.across.to/assets/chains/base.svg",
              "nativeToken": {
                "symbol": "ETH",
                "decimals": 18
              },
              "publicRpcUrl": "https://mainnet.base.org"
            }
          },
          "pricingStatus": "available",
          "limits": {
            "minInputAmount": "5000005",
            "maxInputAmount": "10000000000000"
          },
          "indicativeFees": {
            "proportionalPct": "100400029673814",
            "flatUsd": 0.006938509440000001
          },
          "maximumFees": {
            "proportionalPct": "500000000000000000",
            "flatUsd": 0
          },
          "indicativeFillTimeRange": {
            "min": 11,
            "max": 60
          }
        }
      ]
    }
  ]
}

{
  "error": {
    "type": "request",
    "code": "request.invalid_field",
    "message": "deposit addresses are not offered for this token on chain 8453",
    "param": "destination.token.address",
    "requestId": "39bg2unff0gltcivviconq28bs"
  }
}

{
  "code": "unauthenticated",
  "message": "the request does not have valid authentication credentials for the operation",
  "details": null
}
{
  "error": {
    "type": "permission",
    "code": "permission.not_entitled",
    "message": "API key lacks the deposit-address permission",
    "requestId": "elk3hem5mchqifej1ifur9577k"
  }
}
{
  "code": "unauthenticated",
  "message": "the request does not have valid authentication credentials for the operation",
  "details": {}
}
{
  "error": {
    "type": "request",
    "code": "request.invalid_json",
    "message": "string",
    "param": "string",
    "requestId": "string",
    "details": {
      "balanceCheck": {
        "chainId": 0,
        "tokenAddress": "string",
        "requiredAmount": "string",
        "observedBalance": "string",
        "blockNumber": 0,
        "observedAt": "2019-08-24T14:15:22Z"
      },
      "amountLimits": {
        "side": "min",
        "amount": "string",
        "token": {
          "chainId": 0,
          "address": "string"
        },
        "rail": "string",
        "observedAt": "2019-08-24T14:15:22Z"
      },
      "retryWithAllowedAuthorizationTypes": [
        "approval"
      ]
    }
  }
}
{
  "error": {
    "type": "request",
    "code": "request.invalid_json",
    "message": "string",
    "param": "string",
    "requestId": "string",
    "details": {
      "balanceCheck": {
        "chainId": 0,
        "tokenAddress": "string",
        "requiredAmount": "string",
        "observedBalance": "string",
        "blockNumber": 0,
        "observedAt": "2019-08-24T14:15:22Z"
      },
      "amountLimits": {
        "side": "min",
        "amount": "string",
        "token": {
          "chainId": 0,
          "address": "string"
        },
        "rail": "string",
        "observedAt": "2019-08-24T14:15:22Z"
      },
      "retryWithAllowedAuthorizationTypes": [
        "approval"
      ]
    }
  }
}