v3

latestOpenAPI 3.0.32026-07-21128192192.7 KB
LiquidityProvisioning

Build transaction to migrate LP to swap.coffee DEX

post/v1/liquidity/migration/{user_address}

Path parameters

user_addressstring required

Request body

source_poolstring required
destination_poolstring

If not passed, then volatile pool with source pool tokens will be created

source_lpstring required

Absolute value

min_destination_lpstring required

Absolute value

pool_action_type'not_existing_pool' | 'existing_pool' required

Example request

{
  "source_pool": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
  "destination_pool": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV"
}

Response

Transaction to be sent

query_idinteger required

Example response

{
  "message": {
    "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez"
  }
}