POST
/
v0
/
pools
/
{tokenA}
/
{tokenB}
/
remove-liquidity
curl --request POST \
  --url https://orca.dial.to/api/v0/pools/{tokenA}/{tokenB}/remove-liquidity \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "<any>",
  "account": "11111111111111111111111111111111"
}'
{
  "type": "<any>",
  "transaction": "<string>"
}

Path Parameters

tokenA
string
required

The token A address

Examples:

"So11111111111111111111111111111111111111112"

tokenB
string
required

The token B address

Examples:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

Query Parameters

amount
number

The amount to remove. Human readable value, e.g. 100 USDC

Required range: x > 0
percentage
integer

The percentage of position liquidity to remove

Required range: 0 < x <= 100
positionAddress
string

The position address. If not provided, the first found position in the pool will be used.

Examples:

"11111111111111111111111111111111"

Body

application/json

Response

200 - application/json

OK

The response is of type object.