build_remove_liquidity
Remove liquidity from a trading pair on the Casper Network by building an unsigned transaction with specified percentage, slippage, and deadline parameters.
Instructions
Build an unsigned remove-liquidity transaction
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pair": "<pair>",
"percentage": "<percentage>",
"sender_public_key": "<sender_public_key>"
},
"name": "build_remove_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Pair contract package hash | |
| percentage | Yes | Percentage of liquidity to remove (1-100) | |
| slippage_bps | No | Slippage in basis points (default 300) | |
| deadline_minutes | No | Deadline in minutes (default 20) | |
| sender_public_key | Yes | Sender hex public key |