/build/rpc / assets / governance_rotation
ballot
ballot "template_psbt" ["txid",vout,...] Sign ballot inputs for quorum governance rotation. Each holder UTXO is added as input i with matching output i (self-bounce). Signs with SIGHASH_ANYONECANPAY|ALL so ballots bind the entire rotation template. Arguments: 1. template_psbt (string, required) Base64-encoded template PSBT from prepare_rotation 2. asset_utxos (json array, required) Array of asset UTXOs to vote with [ "txid", (string, required) UTXO transaction ID vout, (numeric, required) UTXO output index ... ] Result: { (json object) "psbt" : "str", (string) Base64-encoded ballot PSBT with signatures "ballot_units" : n (numeric) Total asset units contributed by this ballot } Examples: > bitcoin-cli ballot "cHNidP8..." '[{"txid":"abc...","vout":0}]'
Signature
ballot(template_psbt: string, asset_utxos: array) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"ballot","params":["\"<template_psbt>\"",[]]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| template_psbt | string | yes | Base64-encoded template PSBT from prepare_rotation |
| asset_utxos | any[] | yes | Array of asset UTXOs to vote with [ "txid", (string, required) UTXO transaction ID vout, (numeric, required) UTXO output index ... ] |
Result
Type: any
{ (json object) "psbt" : "str", (string) Base64-encoded ballot PSBT with signatures "ballot_units" : n (numeric) Total asset units contributed by this ballot }
Source: services/core-node/bcore/src/wallet/rpc/assets.cpp:7239
C++ symbol: ballot