you_getStakingEndBlockReceipt

描述:返回指令区块高度上的staking endblock收据

parameter

数据类型 备注
String, 区块高度
"params": ["latest"]

return

Object - 收据对象,如果收据不存在则为 null。收据对象的结构如下:

参数值 数据类型 备注
blockHash String, 32 字节 交易所在块的哈希
blockNumber String 交易所在块的编号
to String, 20 字节 交易接收方地址
gasUsed String 该次交易消耗的 gas 用量
contractAddress String, 20 字节 合约地址
status String 状态 0x0失败 0x1成功
logs Array 本次交易生成的日志对象数组
logsBloom String, 256 字节 bloom 过滤器,轻客户端用来快速提取相关日志

日志对象数组 logs

参数值 数据类型 备注
transactionHash String, 32字节 交易哈希
transactionIndex String 交易在块内的索引序号
blockHash String, 32 字节 交易所在块的哈希
blockNumber String 交易所在块的编号
address String 地址
data String 数据
logIndex String 日志索引
removed Bool 是否删除
topics Array 日志主题数组

example

Request:

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

Response:

{
  blockHash: "0xd5ec09ee546c52ecc6a06e952ea81828ef76ba5762af62b9eb47344eed8e4da7",
  blockNumber: "0x5f8c",
  contractAddress: "0x00000056616c696461746f72734d616e61676572",
  cumulativeGasUsed: "0x100590",
  gasUsed: "0x0",
  logs: [{
      address: "0x00000056616C696461746f72734D616E61676572",
      blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
      blockNumber: "0x5f8c",
      data: "0x00000000000000000000000000000000000000000000000012bcb917c2545800",
      logIndex: "0x0",
      removed: false,
      topics: ["0x0000000000000000000000000000000070726f706f7365725f72657761726473", "0x00000000000000000000000093e8ccbf6383ce4186d8f1f25a9429ce6aecc954"],
      transactionHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
      transactionIndex: "0x0"
  }],
  logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000008000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000400000000000000000000000020000000000000000000000000000000000000000000000000000000",
  status: "0x1",
  to: "0x00000056616c696461746f72734d616e61676572"
}