Cost of an onchain FX swap
swapeazi_dex_costWhat a stablecoin swap on a DEX really cost, from its transaction hash: the sender's token out and token in, each priced as the currency it tracks (USDC, EURC, cUSD, KESm/cKES, cNGN, NGNm, ZARm, GHSm, XOFm, ZARP and others), measured against the independent reference for the day with a margin of error, and signed. Chains: ethereum, base, arbitrum, optimism, polygon, celo, robinhood. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | The swap's transaction hash, 0x followed by 64 hex characters. | |
| chain | Yes | ethereum, base, arbitrum, optimism, polygon, celo or robinhood. |