mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add getblockheader RPC call
Alternative to getblock that works even when the block itself has been pruned, returning all available information.
This commit is contained in:
parent
ab20ae8079
commit
076badb60f
4 changed files with 85 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ static const CRPCCommand vRPCCommands[] =
|
|||
{ "blockchain", "getblockcount", &getblockcount, true },
|
||||
{ "blockchain", "getblock", &getblock, true },
|
||||
{ "blockchain", "getblockhash", &getblockhash, true },
|
||||
{ "blockchain", "getblockheader", &getblockheader, true },
|
||||
{ "blockchain", "getchaintips", &getchaintips, true },
|
||||
{ "blockchain", "getdifficulty", &getdifficulty, true },
|
||||
{ "blockchain", "getmempoolinfo", &getmempoolinfo, true },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue