> For the complete documentation index, see [llms.txt](https://docs.wheelx.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wheelx.fi/overview/features/wheelx-payment.md).

# WheelX Payment

### WheelX Payment — Technical Documentation

### Overview

WheelX Payment is a core primitive of the WheelX cross-chain bridging protocol. It enables users to bridge or swap assets across blockchains by simply sending funds to a generated address — no wallet connection, no transaction signing, and no smart contract interaction required. This makes WheelX Payment ideal for CEX withdrawals, fiat onramps, and headless systems where the sender cannot sign transactions.

The user only needs to perform a standard token transfer to the generated address. WheelX automatically detects the deposit, processes the cross-chain transfer, and delivers funds to the specified destination on the target network.

**Key benefits:**

* No wallet connection required
* No approval transactions or calldata needed
* Works with any wallet or CEX supporting standard transfers
* Deterministic address generation with complete refund handling

#### Demo Link

{% embed url="<https://demo.wheelx.fi/payment/>" %}

#### Demo Guide

{% embed url="<https://app.supademo.com/demo/cmreaz2ke01chzy0j3auy6hjl>" %}

#### How It Works

The WheelX Payment flow consists of three phases:

The integrator requests a deposit address via the WheelX API, specifying the deposit network, deposit token, recipient address on the destination network, and the desired output token. WheelX returns a unique deposit address deterministically generated for the request.

The user sends the specified token amount to the deposit address using a standard token transfer from any wallet or exchange. No special transaction data is required.

WheelX monitors the deposit address on the source chain. Upon detecting a valid deposit, the system processes the cross-chain transfer and delivers funds to the recipient on the destination chain. Funds are credited in the specified output token.

#### Core Features

**Configurable Source Network and Token**

Merchants can fully customize the deposit side of the transaction. The API allows specification of:

* Source (deposit) network — the blockchain where the user will send funds
* Source token — the asset accepted at the deposit address

This flexibility enables merchants to accept deposits in the assets and networks most convenient for their users, while maintaining control over their treasury management.

**Configurable Destination Network and Token**

Similarly, merchants define where and how funds are received:

* **Destination network** — the blockchain where funds will be delivered
* **Destination token** — the asset received by the merchant on the target chain

WheelX handles all cross-chain conversion and bridging automatically, allowing merchants to receive a single, predictable asset on a single chain regardless of where the deposit originated.

**Fee Configuration**

WheelX provides comprehensive fee management options tailored to the merchant’s business model.

**Fixed Fee (WheelX fee)**

WheelX charges a fixed service fee per transaction. This fee is transparent and predictable, making it suitable for standard integration scenarios.

**Split Fee (Revenue Share)**

Merchants can optionally enable a split-fee arrangement with WheelX. In this model, the base WheelX fee and the merchant’s markup are configured separately, allowing for customized revenue sharing agreements.

**Merchant Markup**

Merchants may add an additional fee on top of the WheelX base fee. This markup is deducted from the deposit amount before final crediting. The merchant markup can be configured at the account level via the WheelX dashboard or programmatically through the API.

**Optional Fee Sponsorship**

Merchants have the choice to:

* **Pass through fees** — End users pay standard WheelX fees plus any merchant markup
* **Absorb fees** — Merchant sponsors the entire fee, offering a fee-free experience to end users

This B-side fee flexibility allows merchants to optimize their pricing strategy based on user acquisition costs and competitive positioning.

**Refund Handling**

When a deposit fails to complete successfully for any reason, WheelX implements a robust refund mechanism. The refund address is specified at deposit address creation time. Refunds are processed automatically, returning the original deposited funds to the designated refund address on the source chain.

Key refund scenarios include:

* Insufficient deposited amount
* Unsupported token deposit
* Chain congestion exceeding processing time limits
* Router-level failures

Refund transactions are tracked and can be monitored through the Deposit API and webhook notifications.

**Deposit Status Tracking**

WheelX provides comprehensive deposit status information to integrators. The status can be polled via the API or received in real-time through webhook events.

Status values:

* `pending` — Deposit detected, awaiting confirmation
* `completed` — Funds successfully delivered to destination
* `failed` — Deposit failed, refund initiated
* `refunded` — Refund completed

The Deposit API returns detailed information including:

* Transaction hash on source chain
* Source token and amount
* Destination network
* Destination token and received amount
* Fee breakdown
* Final status with timestamp

**Exception Handling**

WheelX includes robust exception handling for edge cases:

**On-chain congestion**

When a target network experiences high traffic, WheelX automatically monitors for confirmation and retries fills with appropriate gas adjustments. Merchants can also trigger the acceleration feature for immediate expedited processing.

**Router stalling**

In the rare event that a route becomes temporarily unresponsive, WheelX automatically contacts the route provider to resolve the issue. The system maintains redundancy across multiple routing partners to minimize disruption.

**Invalid deposits**

Deposits that do not match the configured token (e.g., sending ETH when USDC is expected) are automatically rejected and refunded to the specified refund address.

**Balance Reconciliation and Sweeping**

After deposits are processed and credited on the destination chain, deposit addresses are periodically swept to consolidate remaining balances. This maintains monitoring efficiency and ensures no funds are left stranded on source chain addresses.

***

#### API Reference

### POST /v1/quote

> Quote

```json
{"openapi":"3.1.0","info":{"title":"API Reference","version":"0.1.0"},"tags":[{"name":"API Reference"}],"servers":[{"url":"https://api.wheelx.fi","description":"Production"}],"paths":{"/v1/quote":{"post":{"summary":"Quote","operationId":"quote_v1_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["API Reference"]}}},"components":{"schemas":{"QuoteRequest":{"properties":{"from_chain":{"type":"integer","title":"From Chain"},"to_chain":{"type":"integer","title":"To Chain"},"from_token":{"type":"string","title":"From Token"},"to_token":{"type":"string","title":"To Token"},"from_address":{"type":"string","title":"From Address"},"to_address":{"type":"string","title":"To Address"},"amount":{"type":"integer","title":"Amount"},"slippage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slippage"},"affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation"},"external_bridge":{"type":"boolean","title":"External Bridge","default":false},"to_platform_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Platform Id"},"select_route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Select Route"},"sponsor_gas":{"type":"boolean","title":"Sponsor Gas","default":false},"use_deposit_address":{"type":"boolean","title":"Use Deposit Address","default":false}},"type":"object","required":["from_chain","to_chain","from_token","to_token","from_address","to_address","amount"],"title":"QuoteRequest"},"QuoteResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"amount_out":{"type":"string","title":"Amount Out"},"fee":{"type":"string","title":"Fee"},"tx":{"anyOf":[{"$ref":"#/components/schemas/Tx"},{"$ref":"#/components/schemas/SolanaTx"},{"type":"null"}],"title":"Tx"},"approve":{"anyOf":[{"$ref":"#/components/schemas/ApproveAction"},{"type":"null"}]},"slippage":{"type":"integer","title":"Slippage"},"min_receive":{"type":"string","title":"Min Receive"},"estimated_time":{"type":"number","title":"Estimated Time","default":10},"recipient":{"type":"string","title":"Recipient"},"router_type":{"$ref":"#/components/schemas/RouterType","default":"swap"},"price_impact":{"$ref":"#/components/schemas/PriceImpactFormatted"},"router":{"type":"string","title":"Router","default":"wheelx"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"points":{"type":"string","title":"Points"},"quote_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Message"},"routes":{"items":{"$ref":"#/components/schemas/RouteInfo"},"type":"array","title":"Routes"},"deposit_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deposit Address"},"gas_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gas Fee"},"bridge_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bridge Order Id"},"quotes":{"anyOf":[{"items":{"$ref":"#/components/schemas/QuoteItem"},"type":"array"},{"type":"null"}],"title":"Quotes"}},"type":"object","required":["request_id","amount_out","fee","slippage","min_receive","recipient","price_impact","created_at","points"],"title":"QuoteResponse"},"Tx":{"properties":{"to":{"type":"string","title":"To"},"value":{"type":"string","title":"Value"},"data":{"type":"string","title":"Data"},"chainId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chainid"},"gas":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gas"},"maxFeePerGas":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxfeepergas"},"maxPriorityFeePerGas":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxpriorityfeepergas"}},"type":"object","required":["to","value","data"],"title":"Tx"},"SolanaTx":{"properties":{"tx":{"type":"string","title":"Tx"},"sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender"},"gas":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gas"}},"type":"object","required":["tx"],"title":"SolanaTx"},"ApproveAction":{"properties":{"token":{"type":"string","title":"Token"},"spender":{"type":"string","title":"Spender"},"amount":{"type":"integer","title":"Amount"}},"type":"object","required":["token","spender","amount"],"title":"ApproveAction"},"RouterType":{"type":"string","enum":["swap","bridge","wrap","unwrap"],"title":"RouterType"},"PriceImpactFormatted":{"additionalProperties":{"type":"string"},"type":"object","title":"PriceImpactFormatted"},"RouteInfo":{"properties":{"name":{"type":"string","title":"Name"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"}},"type":"object","required":["name"],"title":"RouteInfo"},"QuoteItem":{"properties":{"request_id":{"type":"string","title":"Request Id"},"router":{"type":"string","title":"Router"},"amount_out":{"type":"string","title":"Amount Out"},"tx":{"anyOf":[{"$ref":"#/components/schemas/Tx"},{"$ref":"#/components/schemas/SolanaTx"},{"type":"null"}],"title":"Tx"},"routes":{"items":{"$ref":"#/components/schemas/RouteInfo"},"type":"array","title":"Routes"},"gas_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gas Fee"}},"type":"object","required":["request_id","router","amount_out"],"title":"QuoteItem"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```

### GET /v1/order/{request\_id}

> Get Order

```json
{"openapi":"3.1.0","info":{"title":"API Reference","version":"0.1.0"},"tags":[{"name":"API Reference"}],"servers":[{"url":"https://api.wheelx.fi","description":"Production"}],"paths":{"/v1/order/{request_id}":{"get":{"summary":"Get Order","operationId":"get_order_v1_order__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["API Reference"]}}},"components":{"schemas":{"OrderResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"from_chain":{"type":"integer","title":"From Chain"},"from_token":{"type":"string","title":"From Token"},"from_token_info":{"anyOf":[{"$ref":"#/components/schemas/TokenInfo"},{"type":"null"}]},"from_address":{"type":"string","title":"From Address"},"from_amount":{"type":"string","title":"From Amount"},"to_chain":{"type":"integer","title":"To Chain"},"to_token":{"type":"string","title":"To Token"},"to_token_info":{"anyOf":[{"$ref":"#/components/schemas/TokenInfo"},{"type":"null"}]},"to_amount":{"type":"string","title":"To Amount"},"to_address":{"type":"string","title":"To Address"},"open_tx_hash":{"type":"string","title":"Open Tx Hash"},"open_block":{"type":"integer","title":"Open Block"},"open_timestamp":{"type":"string","format":"date-time","title":"Open Timestamp"},"fill_tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fill Tx Hash"},"fill_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fill Block"},"fill_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fill Timestamp"},"status":{"$ref":"#/components/schemas/OrderStatus"},"points":{"type":"string","title":"Points"},"reward_type":{"anyOf":[{"$ref":"#/components/schemas/RewardType"},{"type":"null"}]},"reward_value":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Reward Value"},"routes":{"items":{"type":"string"},"type":"array","title":"Routes"},"to_platform_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Platform Id"},"order_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Value"},"bridge_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bridge Order Id"},"deposit_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deposit Address"}},"type":"object","required":["order_id","from_chain","from_token","from_address","from_amount","to_chain","to_token","to_amount","to_address","open_tx_hash","open_block","open_timestamp","status","points"],"title":"OrderResponse"},"TokenInfo":{"properties":{"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"decimals":{"type":"integer","title":"Decimals"},"address":{"type":"string","title":"Address"},"chain_id":{"type":"integer","title":"Chain Id"},"logo":{"type":"string","title":"Logo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"listed":{"type":"boolean","title":"Listed","default":true},"fee_level":{"anyOf":[{"$ref":"#/components/schemas/FeeLevel"},{"type":"null"}]}},"type":"object","required":["symbol","name","decimals","address","chain_id","logo"],"title":"TokenInfo"},"FeeLevel":{"type":"string","enum":["Group1","Group2"],"title":"FeeLevel"},"OrderStatus":{"type":"string","enum":["Open","Filled","Failed","Refund"],"title":"OrderStatus"},"RewardType":{"type":"string","enum":["xp","usdt"],"title":"RewardType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```

### Get Orders

> Query cross-chain orders — acts as a transaction explorer.\
> Supports filtering by address, chain, token, status, bridge, tx hash, and time range.\
> \
> Table structure: Quote LEFT JOIN Transaction LEFT JOIN ExternalTransaction\
> \- Transaction/ExternalTransaction hold destination-chain fill info\
> \- fill\_tx\_hash = COALESCE(Transaction.tx\_hash, ExternalTransaction.tx\_hash)\
> \- Status: same-chain = filled; cross-chain depends on Transaction/ExternalTransaction state\
> \
> When an address filter is provided, relay deposit history from the Relay API is\
> also fetched and merged with local DB results (deduplicated by bridge\_order\_id).\
> \
> When \`use\_deposit\_address=True\`, only orders that went through a deposit address\
> flow (Quote.deposit is not null) are returned. The \`address\` parameter still\
> filters by sender.

```json
{"openapi":"3.1.0","info":{"title":"API Reference","version":"0.1.0"},"tags":[{"name":"API Reference"}],"servers":[{"url":"https://api.wheelx.fi","description":"Production"}],"paths":{"/v1/orders":{"get":{"summary":"Get Orders","description":"Query cross-chain orders — acts as a transaction explorer.\nSupports filtering by address, chain, token, status, bridge, tx hash, and time range.\n\nTable structure: Quote LEFT JOIN Transaction LEFT JOIN ExternalTransaction\n- Transaction/ExternalTransaction hold destination-chain fill info\n- fill_tx_hash = COALESCE(Transaction.tx_hash, ExternalTransaction.tx_hash)\n- Status: same-chain = filled; cross-chain depends on Transaction/ExternalTransaction state\n\nWhen an address filter is provided, relay deposit history from the Relay API is\nalso fetched and merged with local DB results (deduplicated by bridge_order_id).\n\nWhen `use_deposit_address=True`, only orders that went through a deposit address\nflow (Quote.deposit is not null) are returned. The `address` parameter still\nfilters by sender.","operationId":"get_orders_v1_orders_get","parameters":[{"name":"address","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Address"}},{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Network","default":"mainnet"}},{"name":"from_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Chain"}},{"name":"to_chain","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Chain"}},{"name":"from_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Token"}},{"name":"to_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Token"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"bridge","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bridge"}},{"name":"deposit_tx_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deposit Tx Hash"}},{"name":"fill_tx_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fill Tx Hash"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}},{"name":"use_deposit_address","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Use Deposit Address"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"request_id","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersByAddressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["API Reference"]}}},"components":{"schemas":{"Network":{"type":"string","enum":["mainnet","testnet"],"title":"Network"},"OrdersByAddressResponse":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/OrderResponse"},"type":"array","title":"Orders"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["orders","total"],"title":"OrdersByAddressResponse"},"OrderResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"from_chain":{"type":"integer","title":"From Chain"},"from_token":{"type":"string","title":"From Token"},"from_token_info":{"anyOf":[{"$ref":"#/components/schemas/TokenInfo"},{"type":"null"}]},"from_address":{"type":"string","title":"From Address"},"from_amount":{"type":"string","title":"From Amount"},"to_chain":{"type":"integer","title":"To Chain"},"to_token":{"type":"string","title":"To Token"},"to_token_info":{"anyOf":[{"$ref":"#/components/schemas/TokenInfo"},{"type":"null"}]},"to_amount":{"type":"string","title":"To Amount"},"to_address":{"type":"string","title":"To Address"},"open_tx_hash":{"type":"string","title":"Open Tx Hash"},"open_block":{"type":"integer","title":"Open Block"},"open_timestamp":{"type":"string","format":"date-time","title":"Open Timestamp"},"fill_tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fill Tx Hash"},"fill_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fill Block"},"fill_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fill Timestamp"},"status":{"$ref":"#/components/schemas/OrderStatus"},"points":{"type":"string","title":"Points"},"reward_type":{"anyOf":[{"$ref":"#/components/schemas/RewardType"},{"type":"null"}]},"reward_value":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Reward Value"},"routes":{"items":{"type":"string"},"type":"array","title":"Routes"},"to_platform_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Platform Id"},"order_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Value"},"bridge_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bridge Order Id"},"deposit_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deposit Address"}},"type":"object","required":["order_id","from_chain","from_token","from_address","from_amount","to_chain","to_token","to_amount","to_address","open_tx_hash","open_block","open_timestamp","status","points"],"title":"OrderResponse"},"TokenInfo":{"properties":{"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"decimals":{"type":"integer","title":"Decimals"},"address":{"type":"string","title":"Address"},"chain_id":{"type":"integer","title":"Chain Id"},"logo":{"type":"string","title":"Logo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"listed":{"type":"boolean","title":"Listed","default":true},"fee_level":{"anyOf":[{"$ref":"#/components/schemas/FeeLevel"},{"type":"null"}]}},"type":"object","required":["symbol","name","decimals","address","chain_id","logo"],"title":"TokenInfo"},"FeeLevel":{"type":"string","enum":["Group1","Group2"],"title":"FeeLevel"},"OrderStatus":{"type":"string","enum":["Open","Filled","Failed","Refund"],"title":"OrderStatus"},"RewardType":{"type":"string","enum":["xp","usdt"],"title":"RewardType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```

### GET /v1/chain-info

> Chain Info

```json
{"openapi":"3.1.0","info":{"title":"API Reference","version":"0.1.0"},"tags":[{"name":"API Reference"}],"servers":[{"url":"https://api.wheelx.fi","description":"Production"}],"paths":{"/v1/chain-info":{"get":{"summary":"Chain Info","operationId":"chain_info_v1_chain_info_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Network","default":"mainnet"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"tags":["API Reference"]}}},"components":{"schemas":{"Network":{"type":"string","enum":["mainnet","testnet"],"title":"Network"},"ChainInfoResponse":{"properties":{"chains":{"items":{"$ref":"#/components/schemas/ChainInfo"},"type":"array","title":"Chains"},"tokens":{"items":{"$ref":"#/components/schemas/TokenInfo"},"type":"array","title":"Tokens"},"deposit_platforms":{"additionalProperties":{"$ref":"#/components/schemas/DepositPlatform"},"type":"object","title":"Deposit Platforms"},"slippage_policies":{"items":{"$ref":"#/components/schemas/SlippagePolicy"},"type":"array","title":"Slippage Policies"}},"type":"object","required":["chains","tokens","slippage_policies"],"title":"ChainInfoResponse"},"ChainInfo":{"properties":{"server_name":{"type":"string","title":"Server Name"},"name":{"type":"string","title":"Name"},"chain_id":{"type":"integer","title":"Chain Id"},"rpc_url":{"type":"string","title":"Rpc Url","default":""},"rpc_fallback":{"items":{"type":"string"},"type":"array","title":"Rpc Fallback"},"chain_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Icon"},"is_testnet":{"type":"boolean","title":"Is Testnet","default":false},"is_popular":{"type":"boolean","title":"Is Popular","default":false},"eth_token":{"type":"string","title":"Eth Token","default":"0x0000000000000000000000000000000000000000"},"usdc_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdc Token"},"usdt_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Token"},"support_kline":{"type":"boolean","title":"Support Kline","default":false},"rpc_endpoints":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rpc Endpoints"},"is_evm":{"type":"boolean","title":"Is Evm","default":true},"inbound":{"type":"boolean","title":"Inbound","default":true},"outbound":{"type":"boolean","title":"Outbound","default":true},"support_sponsor_gas":{"type":"boolean","title":"Support Sponsor Gas","default":false}},"type":"object","required":["server_name","name","chain_id"],"title":"ChainInfo"},"TokenInfo":{"properties":{"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"decimals":{"type":"integer","title":"Decimals"},"address":{"type":"string","title":"Address"},"chain_id":{"type":"integer","title":"Chain Id"},"logo":{"type":"string","title":"Logo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"listed":{"type":"boolean","title":"Listed","default":true},"fee_level":{"anyOf":[{"$ref":"#/components/schemas/FeeLevel"},{"type":"null"}]}},"type":"object","required":["symbol","name","decimals","address","chain_id","logo"],"title":"TokenInfo"},"FeeLevel":{"type":"string","enum":["Group1","Group2"],"title":"FeeLevel"},"DepositPlatform":{"properties":{"chains":{"items":{"$ref":"#/components/schemas/DepositPlatformChain"},"type":"array","title":"Chains"},"tokens":{"items":{"$ref":"#/components/schemas/DepositPlatformToken"},"type":"array","title":"Tokens"}},"type":"object","title":"DepositPlatform"},"DepositPlatformChain":{"properties":{"server_name":{"type":"string","title":"Server Name"},"name":{"type":"string","title":"Name"},"chain_id":{"type":"integer","title":"Chain Id"},"rpc_url":{"type":"string","title":"Rpc Url","default":""},"rpc_fallback":{"items":{"type":"string"},"type":"array","title":"Rpc Fallback"},"chain_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Icon"},"is_testnet":{"type":"boolean","title":"Is Testnet","default":false},"is_popular":{"type":"boolean","title":"Is Popular","default":false},"eth_token":{"type":"string","title":"Eth Token","default":"0x0000000000000000000000000000000000000000"},"usdc_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdc Token"},"usdt_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Token"},"support_kline":{"type":"boolean","title":"Support Kline","default":false},"rpc_endpoints":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rpc Endpoints"},"is_evm":{"type":"boolean","title":"Is Evm","default":true},"inbound":{"type":"boolean","title":"Inbound","default":true},"outbound":{"type":"boolean","title":"Outbound","default":true},"support_sponsor_gas":{"type":"boolean","title":"Support Sponsor Gas","default":false},"platform_id":{"type":"integer","title":"Platform Id"},"platform_type":{"items":{"type":"string"},"type":"array","title":"Platform Type"}},"type":"object","required":["server_name","name","chain_id","platform_id"],"title":"DepositPlatformChain"},"DepositPlatformToken":{"properties":{"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"decimals":{"type":"integer","title":"Decimals"},"address":{"type":"string","title":"Address"},"chain_id":{"type":"integer","title":"Chain Id"},"logo":{"type":"string","title":"Logo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"listed":{"type":"boolean","title":"Listed","default":true},"fee_level":{"anyOf":[{"$ref":"#/components/schemas/FeeLevel"},{"type":"null"}]},"chain_icon":{"type":"string","title":"Chain Icon"},"platform_type":{"items":{"type":"string"},"type":"array","title":"Platform Type"},"platform_id":{"type":"integer","title":"Platform Id"}},"type":"object","required":["symbol","name","decimals","address","chain_id","logo","chain_icon","platform_id"],"title":"DepositPlatformToken"},"SlippagePolicy":{"properties":{"bridge":{"type":"boolean","title":"Bridge"},"from_fee_level":{"anyOf":[{"$ref":"#/components/schemas/FeeLevel"},{"type":"null"}]},"to_fee_level":{"anyOf":[{"$ref":"#/components/schemas/FeeLevel"},{"type":"null"}]},"default_slippage":{"type":"integer","title":"Default Slippage"},"min_slippage":{"type":"integer","title":"Min Slippage"},"max_slippage":{"type":"integer","title":"Max Slippage"},"refresh_interval":{"type":"integer","title":"Refresh Interval"},"notice_rounds":{"type":"integer","title":"Notice Rounds"}},"type":"object","required":["bridge","from_fee_level","to_fee_level","default_slippage","min_slippage","max_slippage","refresh_interval","notice_rounds"],"title":"SlippagePolicy"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```

#### Use Cases

**Centralized Exchange (CEX) Withdrawals**

Allow users to withdraw funds from your exchange directly to a deposit address. WheelX automatically bridges the funds to the destination chain specified by the user. No additional wallet connection or signing is required from the end user.

**Fiat Onramps**

Accept fiat deposits, convert to crypto, and send funds to a deposit address. The onramp provider only needs to support standard token transfers — no smart contract integration is required.

**Payment Processing**

Generate unique deposit addresses for each customer or invoice. Accept payments in multiple cryptocurrencies across multiple chains while settling in a single asset on a single chain.

**Cross-Chain Treasury Management**

Collect funds from various blockchains and automatically consolidate them into a preferred asset on a preferred chain, simplifying treasury operations and reducing manual intervention.

**B2B Settlement**

Enable business partners to settle payments using their preferred blockchain and token, while receiving funds in your treasury asset of choice. The merchant markup feature allows you to pass settlement costs to payers or absorb them as a business incentive.

#### Conclusion

WheelX Payment provides a complete solution for cross-chain asset reception with flexible fee configuration, robust error handling, and comprehensive monitoring capabilities. The system is designed to integrate seamlessly into existing applications while providing enterprise-grade reliability for cross-chain payments.

#### Supported Chains\&Tokens

<table><thead><tr><th width="180.5390625">Network</th><th width="125.806396484375">Token</th><th>Contract Address</th></tr></thead><tbody><tr><td>Ethereum</td><td>ETH</td><td><code>0x0000000000000000000000000000000000000000</code></td></tr><tr><td>Ethereum</td><td>USDC</td><td><code>0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48</code></td></tr><tr><td>Ethereum</td><td>USDT</td><td><code>0xdac17f958d2ee523a2206206994597c13d831ec7</code></td></tr><tr><td>Base</td><td>ETH</td><td><code>0x0000000000000000000000000000000000000000</code></td></tr><tr><td>Base</td><td>USDC</td><td><code>0x833589fcd6edb6e08f4c7c32d4f71b54bda02913</code></td></tr><tr><td>BNB Chain</td><td>BNB</td><td><code>0x0000000000000000000000000000000000000000</code></td></tr><tr><td>BNB Chain</td><td>USDT</td><td><code>0x55d398326f99059ff775485246999027b3197955</code></td></tr><tr><td>Solana</td><td>USDC</td><td><code>EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v</code></td></tr><tr><td>Solana</td><td>USDT</td><td><code>Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB</code></td></tr><tr><td>Tron</td><td>USDT</td><td><code>TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t</code></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wheelx.fi/overview/features/wheelx-payment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
