Closed frranck closed 4 years ago
@frranck You can use the getblockstats
RPC command to get the subsidy (in satoshis) at the specified block height.
$ curl --user myuser:mypass --data '{"method":"getblockstats","params":[628768],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST "rpcServerURL" | jq ".result.subsidy"
1250000000
@frranck I'm assuming from the 🚀 reaction that we can close this issue. 🙂
Hello, Is there a function in this library to know the number of bitcoin mined at a given block number ? Regards