you_getWithdrawRecords

描述: 获取解押记录列表

parameter

参数名 类型 描述
blockNumber string 区块高度,如 '0x1' 或 'latest', 'pending' 等关键字

return

参数名 数据类型 备注
operator String 节点管理员(对于委托来说就是委托者地址)
delegator String 委托者地址,对于validator的提现,此字段为空地址(全是0的地址)
validator String mainPubKey 对应的共识地址
nonce Number 本次交易之前发送方已经生成的交易数量
recipient String 提现接收地址
creationHeight String 解押操作开始生效的块高度
completionHeight Number 解押完成的块高度(资金真正到账的块高度)
initialBalance String 想要提现(即减少抵押或委托)的金额,单位LU
finalBalance String 最后实际收到的金额,单位LU
finished Boolean 是否已完成
txHash String 相关联的交易哈希

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":5,"method":"you_getWithdrawRecords","params":["latest"]}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "validator": "0xc4A817C53488557FB0886A25Fd3E9bb84432bEdf",
            "operator": "0x59677fD68ec54e43aD4319D915f81748B5a6Ff8B",
            "delegator": "0x0000000000000000000000000000000000000000",
            "nonce": 9,
            "recipient": "0x0000000000000000000000000000000000000001",
            "creationHeight": 256,
            "completionHeight": 511,
            "initialBalance": "10000000000000000000",
            "finalBalance": "10000000000000000000",
            "finished": 0,
            "txHash": "0x9422e043ba07f4e50e978d1b16a14e6f6f43984baa8d05825bffbc896a67b2f6"
        }
    ]
}