documentation

Gas Fees

Takers cover on-chain settlement gas in USDC. Makers pay zero gas, and post-only orders sign a gas fee of 0.

Live gas estimate & floor

Roughly once per minute, the node publishes the current gas_fee (in raw 6-decimal USDC) via GET /v1/config and the WebSocket config channel. Every EIP-712 Order includes this gasFee, and resting buy orders soft-reserve both the order notional and the signed gas fee.

To prevent rejections if the estimate ticks up while you are signing, the node accepts any order where:

Orders below the 80% floor are rejected with gas fee too low.

One-time per-order charging

During settleFill, the trade admin passes the taker’s signed gasFee. Because gasFee is a total cap per order, it is charged only on the first fill where that order acts as taker — any subsequent partial fills of the same order charge 0 additional gas.

The USDC gas fee transfers from the taker to the trade admin on top of the trading fee. Once confirmed, the taker’s history row records both gas_fee (USDC charged) and tx_gas_wei (native gas spent by the settlement transaction).

Local development note On local Hardhat nodes without live gas tracking, the published gas fee is simulated as a random value between 10,000 and 150,000 raw USDC ($0.01–$0.15).