Swap

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

/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_swap
200

Default Response

The swap operation.

post
/v1/brc20-swap/swap
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/swap
200

Default Response

Last updated