Open position
Generates a PSBT for opening a new liquidity position by sending funds to the pool.
/v0/pool/open-position/psbt
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.
^[1-9][0-9]*$
The amount of the second token to deposit.
^[1-9][0-9]*$
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 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 opening a new liquidity position, which the user should sign.
/v0/pool/open-position/message
The pubkey of the pool.
^[0-9a-fA-F]+$
The amount of the first token to deposit.
^[1-9][0-9]*$
The amount of the second token to deposit.
^[1-9][0-9]*$
The fee rate for the transaction (in sats per byte).
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 created account received in the '/psbt' endpoint.
The merge UTXO 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 opening of a new liquidity position by submitting the signed message and executing the transaction on the network.
/v0/pool/open-position
The user's signature of the open position 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 amount of the first token to deposit.
^[1-9][0-9]*$
The amount of the second token to deposit.
^[1-9][0-9]*$
The fee rate for the transaction (in sats per byte).
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 created account received in the '/psbt' endpoint.
The merge UTXO 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.
Last updated