Build Add Liquidity Transaction
build_amm_add_liquidity_txBuild approve(MC) + approve(MG) + addLiquidity on MegaChadLP MC/MG. The pair refunds whichever side is over-supplied. LP shares returned are stake-eligible in JESTERGOONER V4.
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": {
"amountMC": "<amountMC>",
"amountMG": "<amountMG>",
"recipient": "<recipient>"
},
"name": "build_amm_add_liquidity_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Sender address — used to skip approve steps if allowance is sufficient | |
| amountMC | Yes | MEGACHAD amount in human units | |
| amountMG | Yes | MEGAGOONER amount in human units | |
| recipient | Yes | LP token recipient (0x...) |