DotSwap Nexus Integration
English
English
  • Intro
  • Quickstart Guide
  • General
    • API Access
  • Global
    • Get All Tickers
    • Get Exchange Rate
    • Get Token List
    • Data Queries
  • Swap
    • Runes
      • Get Swappable Tokens
      • Get Token Exchange Rate
      • Get Unsigned Swap PSBT
      • Send Signed Swap PSBT
    • BRC20
      • Get Swappable Tokens
      • Get Token Exchange Rate
      • Pre-Swap Request
      • Get Unsigned Swap PSBT
      • Send Signed Swap PSBT
    • ARC20
      • Get Swappable Tokens
      • Get Token Exchange Rate
      • Get Unsigned Swap PSBT
      • Send Signed Swap PSBT
    • CAT20
  • Liquidity Management
    • Runes
      • Get Available Tokens
      • Get Token Exchange Rate
      • Get Unsigned Liquidity PSBT
      • Send Signed Liquidity PSBT
    • BRC20
      • Get Available Tokens
      • Get Token Exchange Rate
      • Pre Liquidity
      • Get Unsigned Liquidity PSBT
      • Send Signed Liquidity PSBT
    • ARC20
      • Get Available Tokens
      • Get Token Exchange Rate
      • Get Unsigned Liquidity PSBT
      • Send Signed Liquidity PSBT
  • Remove Liquidity
    • Removing Liquidity
  • CAT20
    • Split
Powered by GitBook
On this page
  1. Liquidity Management
  2. BRC20

Get Unsigned Liquidity PSBT

PreviousPre LiquidityNextSend Signed Liquidity PSBT

Last updated 3 months ago

Obtaining an Unsigned PSBT for Adding Liquidity (BRC20)

Upon successful pre-add/create request, obtain the unsigned PSBT. Some of the request parameters will be from the pre-add/create request's return result.

Important Notes:

  1. Use the same address for both payer_ord_addr and payer_btc_addr.

  • Obtaining an Unsigned PSBT for Adding Liquidity (BRC20)
  • POSTCreate BRC20 liquidity adding PSBT
  • Important Notes:

Create BRC20 liquidity adding PSBT

post
Header parameters
AuthorizationstringOptional

token

User-IdstringOptional
Body
tick1stringRequired
tick2stringRequired
amount_1stringRequired
amount_2stringRequired
slipperstringRequired
tick_1_inscription_idsstring[]Required
tick_2_inscription_idsstring[]Required
payer_ord_addrstringRequired
fee_ratestringRequired
payer_btc_addrstringRequired
payer_pub_keystringRequired
check_sumstringRequired
vinsstring[]Required
Responses
200
Success
application/json
x-200:Success
Success
application/json
post
POST /brc20swap/v2/create_add_liquid_psbt HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 276

{
  "tick1": "text",
  "tick2": "text",
  "amount_1": "text",
  "amount_2": "text",
  "slipper": "text",
  "tick_1_inscription_ids": [
    "text"
  ],
  "tick_2_inscription_ids": [
    "text"
  ],
  "payer_ord_addr": "text",
  "fee_rate": "text",
  "payer_btc_addr": "text",
  "payer_pub_key": "text",
  "check_sum": "text",
  "vins": [
    "text"
  ]
}
{
  "code": 1,
  "msg": "text",
  "data": {
    "psbt": "text",
    "ToSignInputs": [
      {
        "index": 1,
        "type": "text"
      }
    ],
    "check_sum": "text",
    "tx_size": 1,
    "usr_cnt": 1,
    "vins": [
      "text"
    ]
  },
  "req_id": "text"
}