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 request body containing the PSBT creation details.
The fee rate for the transaction (in sats per byte).
The public key of the user initiating the request.
The address of the user. If no secondary address is provided, the primary address must be a taproot address. (P2TR)
The secondary address of the user. Must be a taproot address. (P2TR)
An object containing the PSBT (in base64 format), the fee, and the list of UTXOs to sign.
Generates a message hash for decreasing liquidity from a position, which the user should sign.
The request body containing the liquidity decrease details.
The pubkey of the pool.
The pubkey of the position.
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.
The minimum amount of the second token to withdraw.
The address to withdraw the first token to.
The address to withdraw the second token to.
The signed PSBT in base64 format.
The public key of the user initiating the request.
The address of the user. If no secondary address is provided, the primary address must be a taproot address. (P2TR)
The secondary address of the user. Must be a taproot address. (P2TR)
A hexadecimal string representing the hash of the message to be signed by the user.
Finalizes the decrease of liquidity from a position by submitting the signed message and executing the transaction on the network.
The request body containing the liquidity decrease request and signature.
The user's signature of the decrease liquidity message.
The pubkey of the pool.
The pubkey of the position.
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.
The minimum amount of the second token to withdraw.
The address to withdraw the first token to.
The address to withdraw the second token to.
The signed PSBT in base64 format.
The public key of the user initiating the request.
The address of the user. If no secondary address is provided, the primary address must be a taproot address. (P2TR)
The secondary address of the user. Must be a taproot address. (P2TR)
The Arch Network transaction ID of the liquidity decrease.