Open position
Last updated
Last updated
Generates a PSBT for opening a new liquidity position by sending funds to the pool.
The request body containing the funding details.
The first token's identifier. Must be the name of the token.
The second token's identifier. Must be the name of the token. Usually 'sat'.
The amount of the first token to deposit.
The amount of the second token to deposit.
A boolean indicating whether to initialize the account UTXO.
If you're creating a new position, you should set this to true
.
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, the list of UTXOs to sign, and optionally the created account.
Generates a message hash for opening a new liquidity position, which the user should sign.
The request body containing the position opening details.
The pubkey of the pool.
The amount of the first token to deposit.
The amount of the second token to deposit.
The fee rate for the transaction (in sats per byte).
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 opening of a new liquidity position by submitting the signed message and executing the transaction on the network.
The request body containing the position opening request and signature.
The user's signature of the open position message.
The pubkey of the pool.
The amount of the first token to deposit.
The amount of the second token to deposit.
The fee rate for the transaction (in sats per byte).
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 position opening.