Remove Liquidity
Last updated
Last updated
Generates a PSBT for decreasing liquidity from a position. This PSBT is optional and it will be used to pay for the decrease transaction fees if the funds to withdraw are not enough to cover the fees.
The fee rate for the transaction (in sats per byte).
The public key of the rune address of the user initiating the request.
^[0-9a-fA-F]+$
The public key of the bitcoin address of the user initiating the request. If the user doesn't have a bitcoin address, the runePubkey will be used
^[0-9a-fA-F]+$
The rune address of the user. It must be a taproot address. (P2TR). If no bitcoin address is provided, the rune address will be used for bitcoin too.
The bitcoin address of the user.
Generates a message hash for decreasing liquidity from a position, which the user should sign.
The pubkey of the pool.
^[0-9a-fA-F]+$
The pubkey of the position.
^[0-9a-fA-F]+$
The amount of liquidity to withdraw.
The fee rate for the transaction (in sats per byte).
The minimum amount of the first token to withdraw.
^[1-9][0-9]*$
The minimum amount of the second token to withdraw.
^[1-9][0-9]*$
The address to withdraw the first token to.
The address to withdraw the second token to.
The signed PSBT in base64 format.
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}={2})$
The public key of the rune address of the user initiating the request.
^[0-9a-fA-F]+$
The public key of the bitcoin address of the user initiating the request. If the user doesn't have a bitcoin address, the runePubkey will be used
^[0-9a-fA-F]+$
The rune address of the user. It must be a taproot address. (P2TR). If no bitcoin address is provided, the rune address will be used for bitcoin too.
The bitcoin address of the user.
Finalizes the decrease of liquidity from a position by submitting the signed message and executing the transaction on the network.
The user's signature of the decrease liquidity message.
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}={2})$
The pubkey of the pool.
^[0-9a-fA-F]+$
The pubkey of the position.
^[0-9a-fA-F]+$
The amount of liquidity to withdraw.
The fee rate for the transaction (in sats per byte).
The minimum amount of the first token to withdraw.
^[1-9][0-9]*$
The minimum amount of the second token to withdraw.
^[1-9][0-9]*$
The address to withdraw the first token to.
The address to withdraw the second token to.
The signed PSBT in base64 format.
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}={2})$
The public key of the rune address of the user initiating the request.
^[0-9a-fA-F]+$
The public key of the bitcoin address of the user initiating the request. If the user doesn't have a bitcoin address, the runePubkey will be used
^[0-9a-fA-F]+$
The rune address of the user. It must be a taproot address. (P2TR). If no bitcoin address is provided, the rune address will be used for bitcoin too.
The bitcoin address of the user.