Add Liq

quote swap

get
/v1/brc20-swap/quote_swap
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
tickInstringRequired

Input tick

tickOutstringRequired

Output tick

amountstringRequired

The amount of input tick

exactTypestring · enumRequiredExample: exactInPossible values:
Responses
200

Default Response

application/json
get
/v1/brc20-swap/quote_swap
200

Default Response

/add_liq interface pre-load, get the signature content, gas and byte information.

get
/v1/brc20-swap/pre_add_liq
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
tick0stringRequired
tick1stringRequired
amount0stringRequired

Input amount of tick0

amount1stringRequired

Input amount of tick1

lpstringRequired

Expect amount of lp

slippagestringRequired
tsnumberRequired

Timestamp (seconds)

Responses
200

Default Response

application/json
get
/v1/brc20-swap/pre_add_liq
200

Default Response

Add the liquidity operation.

post
/v1/brc20-swap/add_liq
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
addressstringRequired
tick0stringRequired
tick1stringRequired
amount0stringRequired

Input amount of tick0

amount1stringRequired

Input amount of tick1

lpstringRequired
slippagestringRequired
tsnumberRequired

Timestamp (seconds)

sigstringRequired

User signature

Responses
200

Default Response

application/json
post
/v1/brc20-swap/add_liq
200

Default Response

Last updated