rbitcoind: R interface to bitcoin daemon

Description Author(s) References See Also Examples

Description

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.

Author(s)

Jan Gorecki

References

https://bitcoin.org/en/glossary/regression-test-mode

See Also

bitcoind, bitcoind.rpc

Examples

 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)

jangorecki/rbitcoind documentation built on May 18, 2019, 12:25 p.m.