Swap
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

/swap interface pre-load, get the signature content, gas and byte information.
get
/v1/brc20-swap/pre_swap
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
tickInstringRequired
Input tick
tickOutstringRequired
Output tick
amountInstringRequired
The amount of input tick
amountOutstringRequired
The amount of output tick
slippagestringRequired
exactTypestring · enumRequiredExample:
exactInPossible values: tsnumberRequired
Responses
200
Default Response
application/json
get
/v1/brc20-swap/pre_swap200
Default Response

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
addressstringRequired
tickInstringRequired
Input tick
tickOutstringRequired
Output tick
amountInstringRequired
The amount of input tick
amountOutstringRequired
The amount of output tick
slippagestringRequired
exactTypestring · enumRequiredPossible values:
tsnumberRequired
Timestamp (seconds)
sigstringRequired
User signature
Responses
200
Default Response
application/json
post
/v1/brc20-swap/swap200
Default Response
Last updated