Environment
Base URL:https://deposit-addresses.eco.com
In this quickstart, you will:
1
Generate a deposit address
Request a deposit address for your Solana wallet via the API.
2
Send USDC
Transfer USDC to your deposit address on Base.
3
Receive on Solana
The deposit address routes funds automatically. Solvers fulfill the intent on Solana.
Step 1: Generate a Deposit Address
Call the API to generate a deposit address for your Solana wallet.
Response (201 Created):
evmDepositAddress is your deposit address. This is where you’ll send tokens. The address is deterministic: repeating the same request always returns the same address, and you can share it before the contract is deployed onchain.
The solanaAddress in the response is the hex encoding of the base58 address you submitted (a 32-byte public key).
Step 2: Send Tokens
Transfer USDC to your deposit address on Base. The sender makes a normal ERC-20 transfer. No special app or bridge UI required.Step 3: Automatic Processing
Once tokens arrive at the deposit address, the routing logic executes automatically:- Detects the deposit: Balance monitoring detects the incoming tokens
- Deploys the contract: If not already deployed, the contract is deployed via the factory
- Executes the action: For cross-chain deposits,
createIntent()is called - Publishes to Portal: The intent is published to the Routes Portal
- Solver fulfillment: Solvers compete to fulfill the intent on Solana
Step 4: Check Status
Query the deposit address to check its status.Validation rules
The API validates input parameters:- solanaAddress: Must be a valid base58 Solana address (32-44 characters)
- depositor: Must be a valid Ethereum address
- chainId: Must be a number >= 1
Error handling
Validation failures return400 with a validationErrors map:
400, with an error envelope. If the factory is not configured for the specified chain:
