Build stake / withdraw / claim / exit
blazar_build_stakeOne call for BZB staking: ordered txs[] (exact approve if needed, then stake / withdraw / claim / exit), a summary per tx, a simulation, and warnings (e.g. REWARDS_ENDED, NOTHING_TO_CLAIM). No lock, no fee. Returns UNSIGNED txs.
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>",
"from": "<from>"
},
"name": "blazar_build_stake"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Address that will sign and send the txs. Required: used for allowance checks, simulation and nonce. | |
| action | Yes | stake: deposit BZB. withdraw: take back some. claim: collect rewards only. exit: withdraw all + claim. | |
| amount | No | BZB in HUMAN units, e.g. "250". Required for stake and withdraw. | |
| amountIsBaseUnits | No | If true, amount is in base units (wei for 18-decimal tokens; 6 decimals for USDC). Default false. |