Build Staking Transaction
build_staking_txReturns ready-to-sign transactions for stake / unstake / claim on either MoggerStaking (venue=mogger, stake MEGACHAD) or JESTERGOONER V4 (venue=jester, stake MC/MG LP). Stake actions return approve+stake; unstake/claim return a single tx. Each item has { to, value, data } you can pass to eth_sendTransaction.
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": {
"action": "<action>",
"venue": "<venue>"
},
"name": "build_staking_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | mogger = MoggerStaking (MEGACHAD), jester = JESTERGOONER V4 (LP) | |
| action | Yes | Which action to build | |
| amount | No | Amount in human units (e.g. "1000"). Required for stake/unstake. | |
| address | No | Wallet address — used to skip approve if allowance is sufficient |