Author

Topic: Missing Block Header stats from Slushpool (Read 170 times)

newbie
Activity: 3
Merit: 1
March 25, 2020, 05:54:17 PM
#4
Do you have a fully synced full node?
If you have, you can get the info yourself using the console/rpc through: getbestblockhash, then getblockheader "block_hash" commands.

You can also use https://chainquery.com/bitcoin-cli/getbestblockhash and https://chainquery.com/bitcoin-cli/getblockheader to do the same.

Why SlushPool in particular?

Thanks for the replies. I don´t have a full synced node. I don´t know where to execute the commands of the chainquery page, in the console? Do i have to download something to make it work? Slushpool because I want to make a miner using an altera FPGA with a Raspberry Pi 4. My plan is to gather said parameters with the Raspberry and use it only as a communication device (the FPGA would do all the mining). But I don´t know how to request the block header information from the Slushpool page from the Raspberry to give it to the FPGA. The FPGA would mine the block, return the proof of work to the RPi and the RPi would submit said proof to the Slushpool page. I don´t know if I am missing something. The other way would be to request the block header information from the blockchain page, pass it to the FPGA, then the FPGA would return the proof to the RPi and the RPi would submit the proof to the Slushpool page, however I can´t find in which part (code, section) I have to submit this informaion on the Slushpool page. Would this way be more correct?
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
If you only need to get all block header (not specific ), then all you need to do is follow @nc50lc suggestion. There are alternative besides using Bitcoin Core or https://chainquery.com, such as https://www.blockcypher.com/.

But if you need to get header of specific block (which comes from SlushPool API), first you need to get list of block height returned by SlushPool, then use another API to obtain header of the block.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
Do you have a fully synced full node?
If you have, you can get the info yourself using the console/rpc through: getbestblockhash, then getblockheader "block_hash" commands.

You can also use https://chainquery.com/bitcoin-cli/getbestblockhash and https://chainquery.com/bitcoin-cli/getblockheader to do the same.

Why SlushPool in particular?
newbie
Activity: 3
Merit: 1
Hi, I want to know where I can find the block header stats (version, previous hash, merkle root, timestamp, nbits, nonce) in the Slushpool page. I read the API Guide here https://slushpool.com/help/api/ but it doesn´t show the stats I need to request from the page. Thanks.
Jump to: