Description Author(s) References See Also Examples
You need to have to bitcoin node installed, blockchain is not necessary. Unit tests runs on regtest network which uses private blockchain and doesn't need to be synchronized.
Jan Gorecki
https://bitcoin.org/en/glossary/regression-test-mode
bitcoind, bitcoind.rpc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# examples assumes your daemon is already running on regtest
# low level calls to json-rpc
bitcoind.rpc(user = "username",
password = "password",
port = "18332",
method = "getinfo")
# bitcoin daemon object
btcd = bitcoind$new(rpcuser = "username",
rpcpassword = "password",
regtest = TRUE)
btcd$getinfo()
print(btcd)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.