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

# API Servers & RPC

> Choose the interface for market data, chain state, EVM calls, and signed trading.

> [!NOTE]
>
> Mainnet currently supports Spot DEX only. Perpetuals, Oracle, Margin Trading, Lending, and Vaults are **Testnet-Only**. Use Testnet endpoints and assets for those products.

Choose an interface by the task and product it supports. A DEX API server indexes trading state; a chain node executes signed transactions and exposes committed state. Their health and update times can differ.

## Select an interface

| Task | Interface and reference |
| - | - |
| Read supported market data, orders, fills, or balances | [Ault DEX REST API](https://docs.aultblockchain.com/dex-api/getting-started/introduction.md) |
| Stream supported market and account updates | [WebSocket API](https://docs.aultblockchain.com/dex-api/websocket/overview.md) |
| Read native modules or chain status | Chain REST API; see [Chain Queries](https://docs.aultblockchain.com/dex-api/advanced/chain-queries.md) |
| Read EVM state, call a contract, or submit an EVM transaction | [JSON-RPC API](https://docs.aultblockchain.com/developer-guide/json-rpc-api.md) |
| Open an account, transfer funds, place an order, or cancel | A signed chain transaction using the applicable [Trading Actions](https://docs.aultblockchain.com/dex-api/trading/open-account.md) or [SDK](https://docs.aultblockchain.com/developer-guide/ault-sdk.md) interface |

The documented DEX REST and WebSocket reads are public. An authorized trading agent signs chain actions; it is separate from API read access. See [Trading API Key](https://docs.aultblockchain.com/dex-api/trading/api-key.md).

## Trading Interfaces

| Product | Signed actions | Read interface |
| - | - | - |
| Spot | Native CLOB messages; Python 0.9 provides high-level order methods | Existing Spot REST/WS reference, plus native order and bank queries |
| Perpetuals | Perpetual collateral/configuration messages and CLOB orders with Perpetual options | [Perp REST](https://docs.aultblockchain.com/dex-api/rest/perpetual-accounts.md), [Perp WebSocket](https://docs.aultblockchain.com/dex-api/websocket/perpetuals.md), and native queries (Testnet-Only) |
| Margin Trading | Margin account messages and supported Spot orders with Margin funding | [Margin REST](https://docs.aultblockchain.com/dex-api/rest/margin.md), with Spot orders queried by the derived account |
| Lending and Vaults | Product-specific native messages; Python 0.9 provides generated message factories | [Lending REST](https://docs.aultblockchain.com/dex-api/rest/lending-markets.md), [Vault REST](https://docs.aultblockchain.com/dex-api/rest/vaults.md), and native queries |

The [SDK support table](https://docs.aultblockchain.com/developer-guide/ault-sdk.md#trading-support) identifies the verified wrappers
and their limits. A feature supported on chain may not yet have a UI button, an SDK method, or a DEX API route. Use [Chain Queries](https://docs.aultblockchain.com/dex-api/advanced/chain-queries.md) for the verified
native references.

## Choose the network and check freshness

Use [Mainnet](https://docs.aultblockchain.com/network-information/mainnet.md) or [Testnet](https://docs.aultblockchain.com/network-information/testnet.md) for chain IDs and network endpoints. DEX REST and WebSocket hosts are maintained in [API Introduction](https://docs.aultblockchain.com/dex-api/getting-started/introduction.md#base-urls).

Keep the selected network consistent across wallet, node, DEX API, and product configuration. Spot responses and WebSocket streams do not cover Perpetual, Lending, Margin Trading, or Vault data.

For automated trading, check indexer progress as well as connection liveness. Reconcile confirmed transactions and account state after reconnecting. [API data freshness](https://docs.aultblockchain.com/dex-api/getting-started/introduction.md#data-freshness), [Heartbeats](https://docs.aultblockchain.com/dex-api/websocket/heartbeats.md), and [Errors](https://docs.aultblockchain.com/dex-api/getting-started/errors.md) cover the integration details.


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