Return the coin base data of given block
block hash: (string)
block hashverbose: (bool, default: false)
whether or not show mining info(array of string, verbose=true)
(hex string)
block height(hex string)
nonce(hex string)
custom data 1, filled by miner, ASCII string(hex string)
custom data 2(array of string, verbose=false)
total number(hex string)
custom data 1, filled by miner, ASCII string(hex string)
custom data 2curl --data '{"method":"getCoinbase","params":[],"jsonrpc":"2.0","id":1}' -s -k -u "rpcuser:rpcpass" -H 'Content-Type: application/json' http://127.0.0.1:18131 |jq .
[
"01",
"52fdfc072182654d",
"3035353737303036373931393437373739343130", # "05577006791947779410"
"65316438316561652d313263662d343932302d623735312d323833383336616333306265" # "e1d81eae-12cf-4920-b751-283836ac30be"
]
© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License