Supported operations
We quote both stablebonds and stablecoins (for example USDC) on Avalanche.
Asset identifiers
Avalanche assets are identified by the raw token contract address only.Stablebond addresses
Live token-contract addresses for every stablebond on Avalanche, each linked to Snowtrace:Register an Avalanche wallet
Register the wallet as a payment account withaccountDetails of kind address and chain avalanche. Set $ORGANIZATION_ID to the organization that owns the wallet: your own organization or a customer organization. See Organizations in the route.
id as the source or destination of a quote. An EVM address is valid on every EVM chain, so the account’s rails can list more than one EVM chain. Set sourceRail or destinationRail to avalanche in the quote to pick this chain.
Offramps and swaps
On an offramp or a swap from an Avalanche wallet, the order’sfundingInstructions.rail is avalanche, and fundingInstructions.destination gives the address to send the token to. The source asset is an ERC-20 token. When preparedTransaction is present, its transaction is an unsigned EIP-1559 transaction, 0x-prefixed hex, that calls the token’s transfer from the customer’s wallet. The customer signs it, submits it and pays the gas in AVAX. Otherwise, send the order’s source.amount of source.asset to address. The prepared transaction uses the wallet’s next nonce, so it goes stale if the wallet sends another transaction first. Then call POST /organization/{organizationId}/order/{id}/funding_instructions/refresh and sign the new one. See Offramps and Swaps.