getTotalTransactionCount

返回当前交易总数和区块高度

参数

  • groupID: unsigned int - 群组ID

返回值

  • object: - 当前交易总数和区块高度信息,其字段如下:
    • txSum: string - 交易总数
    • blockNumber: string - 区块高度
  • 示例
  1. // Request
  2. curl -X POST --data '{"jsonrpc":"2.0","method":"getTotalTransactionCount","params":[1],"id":1}' http://127.0.0.1:8545 |jq
  3.  
  4. // Result
  5. {
  6. "id": 1,
  7. "jsonrpc": "2.0",
  8. "result": {
  9. "blockNumber": "0x1",
  10. "failedTxSum": "0x0",
  11. "txSum": "0x1"
  12. }
  13. }