Use Case
Enable users to swap token 1 into token 2 across various chains. Examples:- Setup wallet address 1 which turns incoming USDC on Solana into EURC on Arbitrum
- Setup wallet address 2 which turns incoming SOL on Solana into USDC on Arbitrum
Example Flow
Now an
autoramp is activatedi. which turns all incoming USDC on wallet address 1 into EURC on Arbitrumii. and delivers those into his connected wallet in wallet address 2Prerequisites
Before creating a swap autoramp, you must register the recipient wallet address for your customer. The wallet inrecipient_account must already be linked via the Crypto Addresses API.
This is required for Travel Rule compliance — all wallet addresses interacting with Iron must be registered before they can be used in any flow.
The wallet address you provide in
recipient_account must match a wallet you’ve already registered via the Crypto Addresses API.- First, register a wallet address (self-hosted or hosted) for your customer
- Then, create a swap autoramp using the registered wallet address as the recipient
Implementation
Follow these example steps to create an autoramp logic for turning USDC on Solana to USDC on Arbitrum.Request
Response
The
deposit_rails array contains the payment details. The legacy deposit_account field is deprecated.
