> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sodax.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> SODAX is mainnet-only (no testnet chains or RPC endpoints exist) with a hub-and-spoke architecture; Sonic is the hub. SODAX is non-custodial protocol/software: it routes and settles; independent solvers on the marketplace fill — never say 'our solver', 'the SODAX solver', that SODAX trades, takes custody, or fills orders. For frontend/React integrations, prefer @sodax/dapp-kit hooks over calling @sodax/sdk directly. SDK operations — the methods that build, submit or await a transaction, and the API/quote calls — return Result<T, E> ({ ok: true, value } or { ok: false, error }): check result.ok, never wrap them in try/catch or branch on error.message; discriminate on the narrow error.code union instead. Synchronous config getters (getPartnerFee, getSupportedSwapTokens, getVault, ...) return their value directly, not a Result.

# 1. The Foundation

> This is the core logic layer that powers the entire ecosystem. It provides the raw functional modules required to build with SODAX programmatically.

## Main SDK

The SODAX SDK provides a comprehensive interface for interacting with the SODAX protocol, enabling cross-chain swaps, money market, cross-chain bridging, migration and staking SODA token.

> [card] [@sodax/sdk](https://docs.sodax.com/developers/packages/foundation/sdk/index.md)
>
> Core `Sodax` facade, hub-and-spoke services, and intent relay.

#### Functional Modules inside [sdk](https://docs.sodax.com/developers/packages/foundation/sdk/index.md)

> [card] [Swaps](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/swaps.md)
>
> Quote and execute intent-based swaps across networks.

> [card] [Lend / Borrow (Money Market)](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/money_market.md)
>
> Supply, borrow, withdraw, repay, and reserve data.

> [card] [Leverage Yield](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield.md)
>
> Deposit, withdraw, APR, and vault position data.

> [card] [Bridge](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/bridge.md)
>
> Spoke to hub, hub to spoke, and spoke to spoke transfers.

> [card] [Staking](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/staking.md)
>
> Stake and unstake SODA, claim rewards, and read staking data.

> [card] [Migration](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/migration.md)
>
> Migrate ICX/wICX, legacy bnUSD, and BALN, and their reverse operations.

#### Tooling Modules inside [sdk](https://docs.sodax.com/developers/packages/foundation/sdk/index.md)

> [card] [Backend API](https://docs.sodax.com/developers/packages/foundation/sdk/tooling-modules/backend_api.md)
>
> HTTP client for intent lookup, swap submission, solver orderbook, money market data, and runtime config.

> [card] [Intent Relay API](https://docs.sodax.com/developers/packages/foundation/sdk/tooling-modules/intent_relay_api.md)
>
> Submit transactions and retrieve transaction packets across chains.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.