Runes

In this guide, we will demonstrate how to create and add liquidity to a Runes liquidity pool using an example provided by DotSwap. The process includes:

  1. Getting the list of tokens available for adding liquidity

  2. Getting the token swap rate

  3. Creating/adding liquidity to a pool (if the pool exists, it will add liquidity; if not, it will automatically create)

  4. Obtaining an unsigned PSBT for adding/creating liquidity

  5. Submitting a signed PSBT for adding/creating liquidity

Step1:

Get Available Tokens

Step2:

Get Token Exchange Rate

Step3:

Get Unsigned Liquidity PSBT

Step4:

Send Signed Swap PSBT

Last updated