PATCH
/
v1
/
dex
/
pool
/
{address}
curl --request PATCH \
  --url https://backend.swap.coffee/v1/dex/pool/{address} \
  --header 'Content-Type: application/json' \
  --data '{
  "user_wallet": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
  "asset_1_amount": "<string>",
  "asset_2_amount": "<string>",
  "min_lp_amount": "<string>",
  "reserves_ratio_condition": {
    "denominator": 123,
    "min_nominator": 123,
    "max_nominator": 123
  }
}'
[
  {
    "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
    "value": "<string>"
  }
]

Authorizations

X-Api-Key
string
header
required

Path Parameters

address
string
required

Body

application/json
user_wallet
string
required
asset_1_amount
string
required

Absolute value

asset_2_amount
string
required

Absolute value

min_lp_amount
string

Absolute value

reserves_ratio_condition
object

Response

200
application/json
Transactions to be sent
payload_cell
file
required

Base64-encoded cell. Treated as a payload field in TonConnect transaction.

address
string
required
value
string
required

Amount of nanotons to be sent. Can be passed to TonConnect transaction.

state_init
file

Base64-encoded cell. Treated as a stateInit field in TonConnect transaction.