Post
Topic
Board Electrum
Merits 34 from 6 users
Topic OP
Get specific block's hash with client RPC?
by
Lancelight
on 03/11/2021, 16:35:33 UTC
⭐ Merited by ETFbitcoin (11) ,HCP (10) ,NeuroticFish (5) ,EFS (4) ,nc50lc (2) ,pooya87 (2)
I need an end point that could be used to get the block hash of a specific block using the RPC calls from the the Electrum client.  Currently "getinfo" only lists the block height and NOT the block hash.  How can I add block hash to "getinfo" or is there another endpoint that will work?  With the client,  none of the "protocol specification" endpoints work such as "blockchain.block.get_header" as listed here: https://electrum.readthedocs.io/en/latest/protocol.html   I tried them all,  none of them work.  But any of the commands in "--help" work great with RPC.  Even if I need to copy/paste some sort of modification to the "gitinfo" command,  that would be cool.  I just dont know a single thing about python let alone electrum's implementation of it.  I am however a PHP dev,  so I could probably stumble through it and get it working after an exorbitant amount for such a simple item that someone more knowledgeable could crank out in 30 seconds in a post here Smiley