PizzaSwap

Swap's global configuration information.

get
/v1/brc20-swap/config
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Default Response

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

Default Response

Gets the balance for the specified address and tick.

get
/v1/brc20-swap/balance
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
tickstringRequired
Responses
200

Default Response

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

Default Response

Get Pool information based on trade pair.

get
/v1/brc20-swap/pool_info
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
tick0stringOptional
tick1stringOptional
Responses
200

Default Response

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

Default Response

Select the tick information that you can use based on the address.

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

Fuzzy matching

Responses
200

Default Response

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

Default Response

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

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

Timestamp (seconds)

feeTickstringRequired

Tick used as fee

Responses
200

Default Response

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

Default Response

Deploy the pool operation.

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

Timestamp (seconds)

feeTickstringRequired

Tick used as fee

feeAmountstringRequired

The fee that the user needs to pay

feeTickPricestringRequired

The price of fee tick

sigsstring[]Optional

User signature

Responses
200

Default Response

application/json
post
/v1/brc20-swap/deploy_pool
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)

feeTickstringRequired

Tick used as fee

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)

feeTickstringRequired

Tick used as fee

feeAmountstringRequired

The fee that the user needs to pay

feeTickPricestringRequired

The price of fee tick

sigsstring[]Optional

User signature

Responses
200

Default Response

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

Default Response

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

get
/v1/brc20-swap/pre_remove_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
slippagestringRequired
tsnumberRequired
feeTickstringRequired

Tick used as fee

Responses
200

Default Response

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

Default Response

Remove the liquidity operation

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

Input amount of tick0

amount1stringRequired

Input amount of tick1

slippagestringRequired
tsnumberRequired

Timestamp (seconds)

feeTickstringRequired

Tick used as fee

feeAmountstringRequired

The fee that the user needs to pay

feeTickPricestringRequired

The price of fee tick

sigsstring[]Optional

User signature

Responses
200

Default Response

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

Default Response

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

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

Send tick

amountstringRequired

The amount of send tick

tostringRequired

The receiver of send tick

tsnumberRequired

Timestamp (seconds)

feeTickstringRequired

Tick used as fee

Responses
200

Default Response

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

Default Response

/swap interface pre-load, get the signature content and gas 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

Timestamp(seconds)

feeTickstringRequired

Tick used as fee

Responses
200

Default Response

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

Default Response

The send operation.

post
/v1/brc20-swap/send
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
addressstringRequired
tickstringRequired

Send tick

amountstringRequired

The amount of send tick

tostringRequired

The receiver of send tick

tsnumberRequired

Timestamp (seconds)

feeTickstringRequired

Tick used as fee

feeAmountstringRequired

The fee that the user needs to pay

feeTickPricestringRequired

The price of fee tick

sigsstring[]Optional

User signature

Responses
200

Default Response

application/json
post
/v1/brc20-swap/send
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

feeTickstringRequired
slippagestringRequired
exactTypestring · enumRequiredPossible values:
tsnumberRequired

Timestamp (seconds)

feeAmountstringRequired

The fee that the user needs to pay

feeTickPricestringRequired

The price of fee tick

sigsstring[]Optional

User signature

Responses
200

Default Response

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

Default Response

Gets the pool list information.

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

Fuzzy matching

startnumberRequired
limitnumberRequired
Responses
200

Default Response

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

Default Response

Gets the pool list information by address.

get
/v1/brc20-swap/my_pool_list
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
tickstringOptional
startnumberRequired
limitnumberRequired
Responses
200

Default Response

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

Default Response

Gets the user pool information for the specified pair.

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

Default Response

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

Default Response

An overview of swap information

get
/v1/brc20-swap/overview
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Default Response

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

Default Response

Gets the gas consumption records for a user aggregation operation.

get
/v1/brc20-swap/gas_history
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringOptional
startnumberRequired
limitnumber · max: 100Required
Responses
200

Default Response

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

Default Response

Gets the history of send transaction.

get
/v1/brc20-swap/send_history
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringOptional
tickstringOptional
startnumberRequired
limitnumber · max: 100Required
Responses
200

Default Response

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

Default Response

Gets the history of a pair addition pool.

get
/v1/brc20-swap/liq_history
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringOptional
tickstringOptional
typestringOptional

Optional: add, remove

startnumberRequired
limitnumber · max: 100Required
Responses
200

Default Response

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

Default Response

Gets the history of swap.

get
/v1/brc20-swap/swap_history
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringOptional
tickstringOptional
startnumberRequired
limitnumber · max: 100Required
Responses
200

Default Response

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

Default Response

Get chain history of rollup inscription.

get
/v1/brc20-swap/rollup_history
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
startnumber · max: 100Required
limitnumber · max: 1000Required
Responses
200

Default Response

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

Default Response

Gets the deposit list for a user.

get
/v1/brc20-swap/deposit_list
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
tickstringOptional
startnumberRequired
limitnumberRequired
Responses
200

Default Response

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

Default Response

Create a deposit psbt to be signed by the user.

get
/v1/brc20-swap/create_deposit
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
inscriptionIdstringRequired
pubkeystringRequired
addressstringRequired
Responses
200

Default Response

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

Default Response

User signature deposit psbt, submit confirmation.

post
/v1/brc20-swap/confirm_deposit
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
psbtstringRequired
inscriptionIdstringRequired
Responses
200

Default Response

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

Default Response

Gets the current system state.

get
/v1/brc20-swap/system_status
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Default Response

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

Default Response

Gets the user withdrawal history.

get
/v1/brc20-swap/withdraw_history
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringRequired
startnumberRequired
limitnumberRequired
tickstringOptional
Responses
200

Default Response

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

Default Response

Retry create a withdraw psbt to be signed by the user.

get
/v1/brc20-swap/create_retry_withdraw
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
idstringRequired
pubkeystringRequired
addressstringRequired
Responses
200

Default Response

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

Default Response

User signature withdraw psbt, submit confirmation.

post
/v1/brc20-swap/confirm_retry_withdraw
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstringRequired

The withdraw order id

paymentPsbtstringRequired
approvePsbtstringRequired
Responses
200

Default Response

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

Default Response

Create a withdraw psbt to be signed by the user.

get
/v1/brc20-swap/create_withdraw
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pubkeystringRequired
addressstringRequired
tickstringRequired
amountstringRequired
tsnumberRequired
feeTickstringRequired
Responses
200

Default Response

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

Default Response

User signature withdraw psbt, submit confirmation.

post
/v1/brc20-swap/confirm_withdraw
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstringRequired

The withdraw order id

paymentPsbtstringRequired
approvePsbtstringRequired
feeTickstringRequired
feeAmountstringOptional

The fee that the user needs to pay

feeTickPricestringOptional

The price of fee tick

sigsstring[]Optional

User signature

Responses
200

Default Response

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

Default Response

Gets the withdrawal progress for the specified ID.

get
/v1/brc20-swap/withdraw_process
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
idstringRequired
Responses
200

Default Response

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

Default Response

Last updated