Skip to main content
POST
Get swap quote

Authorizations

x-api-key
string
header
required

Your Zet API key. Contact zetdotmoney@gmail.com to obtain your keys.

Body

application/json
fromToken
string
required

Token symbol to swap from.

Example:

"USDC"

toToken
string
required

Token symbol to swap to.

Example:

"ETH"

amount
string
required

Amount of fromToken to swap.

Example:

"100"

fromChain
enum<string>
default:base

Primary chains where Zet-managed wallets operate

Available options:
base,
bsc
toChain
enum<string>
default:base

Target chain. If different from fromChain, this becomes a cross-chain swap.

Available options:
base,
bsc
slippage
number
default:0.3

Maximum slippage tolerance as a percentage.

Example:

0.5

Response

Swap quote with route details.

success
boolean
Example:

true

data
object