post https://{network}.unifra.io/v1/
Returns the vote list of the given account, identified by its address.
Parameters
- BASE32 - address of the account.
- QUANTITY|TAG - (optional, default: "latest_state") Integer epoch number, or the string "latest_state", "latest_confirmed", "latest_checkpoint" or "earliest", see the epoch number parameter
Returns
Array - array of vote info objects:
- amount: QUANTITY - The number of tokens locked.
- unlockBlockNumber: QUANTITY - The block number at which the locked tokens are released.
For getting the current block number, please refer to conflux-rust#1973.
Example
Request
curl -X POST \
--data '{"jsonrpc":"2.0","method": "cfx_getVoteList",
"params": [
"cfx:aan02vpwvz8crpa1n10j17ufceefptdc2yzkagxk5u",
"latest_state"
],
"id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577
Result
{
"jsonrpc": "2.0",
"result": [],
"id": 0
}