Quote API

The API allows developers and users to get the best swap quotes to speed up integration.

API base path

https://api.bulbaswap.io/v2/quote

Params

Name
Require
Type
Note

amount

true

number

e.g. 0.1

tokenInAddress

true

string

eth, ETH, weth, WETH, 0x...

tokenOutAddress

true

string

eth, ETH, weth, WETH, 0x...

slippage

false

number

min: 0.01, max: 100, default: auto

minAmountOut

false

number

e.g. 0.2

protocols

false

string

v2/v3/v2,v3 (default: v2,v3)

recipient

false

string

0x...

deadline

false

number

Positive integer, min: 60, max: 600

Example

// Get query
https://api.bulbaswap.io/v2/quote?amount=0.1
    &tokenInAddress=ETH
    &tokenOutAddress=0xc7D67A9cBB121b3b0b9c053DD9f469523243379A
    &slippage=0.5
    &minAmountOut=270.9
    &recipient=0x3210f5d1a49842634F224dD50a8BadF02e9aB3a4
    &deadline=600
    &protocols=v2,v3

Last updated