cURL
curl --request POST \ --url https://raydium.dial.to/api/v0/amm/{poolId}/remove-liquidity \ --header 'Content-Type: application/json' \ --data '{ "type": "transaction", "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176" }'
{ "type": "transaction", "transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw931mdvp9vlLgQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAI8FZAz9nIL9hGE4x5rKjjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAgAB" }
Generate a transaction for removing liquidity from Raydium’s AMM.
ID of the Standard AMM pool
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
The percentage of liquidity to remove
0 <= x <= 100
25
OK
The response is of type object.
object
Was this page helpful?