Unstake tokens/NFTs from a DAO
dexe_vote_build_withdrawBuilds calldata to unstake deposited governance tokens from a DeXe GovPool without broadcasting, preparing a wallet-signed withdrawal; voted tokens stay locked until proposal execution.
Instructions
Builds calldata; does not broadcast. GovPool.withdraw(receiver, amount, nftIds) — unstakes deposited governance tokens. Tokens you voted with stay locked until that proposal is executed.
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": {
"govPool": "<govPool>",
"receiver": "<receiver>",
"amount": "<amount>"
},
"name": "dexe_vote_build_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Governance token to unstake, in that token's own decimals. RAW base units, digits only ('1500000000000000000' = 1.5 at 18 dec); '1.5' is REJECTED — scale it, or use dexe_proposal_create | |
| nftIds | No | Your governance NFT token ids, decimal; [] for ERC20-only DAOs. | |
| chainId | No | Chain this payload targets: 56 mainnet, 97 testnet. Default: the configured chain. | |
| govPool | Yes | DAO GovPool address (dexe_dao_registry_lookup). | |
| receiver | Yes | Address the unstaked tokens/NFTs are sent to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | ||
| warnings | No | ||
| advisories | No | Deprecated — use warnings. |