Add Liq
Please note that access to this API requires the API key to have brc20-swap permissions enabled.
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_swap200
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_liq200
Default Response

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_liq200
Default Response
Last updated