POST
/
v1
/
yield
/
pool
/
{pool_address}
/
{user_address}
curl --request POST \
  --url https://backend.swap.coffee/v1/yield/pool/{pool_address}/{user_address} \
  --header 'Content-Type: application/json' \
  --data '{
  "request_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
    }
  }
}'
[
  {
    "query_id": 123,
    "message": {
      "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
      "value": "<string>"
    }
  }
]

Authorizations

X-Api-Key
string
header
required

Path Parameters

pool_address
string
required

Pool address

user_address
string
required

User address

Body

application/json
request_data
object
required

Response

200
application/json
Transaction to be sent
query_id
integer
required
message
object
required