Description Usage Arguments Value Author(s) References Examples
get block template
1 2 3 | getBlockTemplate(wallet.address, reserve.size = 60,
ip = getOption("monerod.ip", "127.0.0.1"),
port = getOption("monerod.port", 18081))
|
wallet.address |
Address of wallet to receive coinbase transactions if block is successfully mined. |
reserve.size |
integer reserve size. |
ip |
daemon ip address |
port |
daemon port |
blocktemplate_blob - chr; Blob on which to try to mine a new block.
difficulty - int; Difficulty of next block.
height - int; Height on which to mine.
prev_hash - chr; Hash of the most recent block on which to mine the next block.
reserved_offset - int; Reserved offset
status - chr; General RPC error code. "OK" means everything looks good.
Garrett See
https://getmonero.org/knowledge-base/developer-guides/daemon-rpc#getblocktemplate
1 2 3 4 5 | ## Not run:
x="44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns"
getBlockTemplate(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.