Building with an AI assistant? Add the SODAX MCP (
https://mcp.sodax.com/mcp) to Claude, Cursor, or any MCP-capable tool and it can pull live token lists, real quotes, and these docs while it writes your integration.Using the HTTP API instead? The SODAX Swaps API works from any language — no SDK required. Get an API key →
1. Install
2. Create a Robinhood Chain wallet provider
Robinhood Chain uses the sameEvmWalletProvider as every other EVM network, keyed by ChainKeys.ROBINHOOD_MAINNET.
robinhoodChain definition from @sodax/wallet-sdk-core; see Wallets. Building in React? @sodax/wallet-sdk-react connects EVM wallets for you and hands back a ready-made provider via useWalletProvider.
3. Look up supported tokens
Token addresses and decimals come from the SDK config, so you never hard-code them.4. Quote and swap
swap() runs the full lifecycle: it creates the intent on Robinhood Chain, verifies the transaction landed, relays it to the hub, and notifies the solver to fill on the destination network.
ok means the intent was created, relayed to the hub, and the solver notified, not that it was
filled. Poll sodax.swaps.getStatus({ intent_tx_hash: intentDeliveryInfo.dstTxHash }) until the
status is SolverIntentStatusCode.SOLVED, which is the only success signal. The
main quickstart has the full polling loop, including why NOT_FOUND is not terminal.
A few things to know on Robinhood Chain:
- ETH needs no approval. It is the native gas token. Swapping an ERC-20 token on Robinhood Chain needs an allowance first; see Approvals.
- Amounts follow
token.decimals. ETH has 18 decimals, but USDG has 6. Always build amounts from the token’s owndecimals.
Next steps
- Swaps on Robinhood Chain: approvals, fees, Stock Tokens, manual orchestration.
- Money Market on Robinhood Chain: supply and borrow with cross-network collateral.
- Full API reference: Swaps in the SDK docs.