Quote and swap
Simulate a built transaction before signing
eth_calls the built calldata from the user's address and estimates gas, so a revert is caught before the wallet opens. Known selectors are decoded (NotRouter, a paused Kuru market, allowance and balance errors). An allowance revert is advisory: approve first, then swap.
post/swap/simulate
Request
- Base URL: https://api.getchord.xyz/v1
- URL: https://api.getchord.xyz/v1/swap/simulate
- Auth: none declared
Request body
Response
ok: true with the simulated output and gas, or ok: false with the decoded revert.
Changes
No recorded changes to this operation across all 1 revision of this API.