Learn R Programming

rbtc (version 0.1-7)

Bitcoin API

Description

Implementation of the RPC-JSON API for Bitcoin and utility functions for address creation and content analysis of the blockchain.

Copy Link

Version

Install

install.packages('rbtc')

Monthly Downloads

188

Version

0.1-7

License

GPL-3

Maintainer

Bernhard Pfaff

Last Published

October 20th, 2024

Functions in rbtc (0.1-7)

blockstats

Obtaining statistics of a block
concatHex

Concatenate two hex strings
createPrivateKey

Creation of a private key
decodescript

RPC-JSON API: decodescript
ecpoint

Creating objects of class ECPOINT
PubKey2PubHash

Create public key hash from 512-bit public key
ecoperators

Elliptic curve operators
getaddednodeinfo

RPC-JSON API: getaddednodeinfo
ecparam

Creating objects of class ECPARAM
date2int

Convert date/time to integer
disconnectnode

RPC-JSON API: disconnectnode
getblockcount

RPC-JSON API: getblockcount
getblockchaininfo

RPC-JSON API: getblockchaininfo
decodeHex

Decoding of a hex string
decoderawtransaction

RPC-JSON API: decoderawtransaction
getconnectioncount

RPC-JSON API: getconnectioncount
getdifficulty

RPC-JSON API: getdifficulty
getblockhash

RPC-JSON API: getblockhash
getblockheader

RPC-JSON API: getblockheader
getinfo

RPC-JSON API: getinfo
conrpc

Extracting Configuration Settings
gethelp

RPC-JSON API: Help
getchaintips

RPC-JSON API: getchaintips
getchaintxstats

RPC-JSON API: getchaintxstats
getmempoolancestors

RPC-JSON API: getmempoolancestors
gettxout

RPC-JSON API: gettxout
getrawtransaction

RPC-JSON API: getrawtransaction
getmempooldescendants

RPC-JSON API: getmempooldescendants
hash256

BTC hash256
intRangeDay

Integer range within a day
gettxoutsetinfo

RPC-JSON API: gettxoutsetinfo
gettxoutproof

RPC-JSON API: gettxoutproof
containsPoint

containsPoint-methods
getbestblockhash

RPC-JSON API: getbestblockhash
createBtcAdr

Create BTC addresses
int2date

Convert time stamp to POSIX
getmempoolentry

RPC-JSON API: getmempoolentry
getblock

RPC-JSON API: getblock
hash160

BTC hash160
ping

RPC-JSON API: ping
getwalletinfo

RPC-JSON API: getwalletinfo
preciousblock

RPC-JSON API: preciousblock
timeofblock

Time of a block
intRangePeriod

Integer range between two dates
startbtc

Start bitcoind server process
stopbtc

Stop bitcoind server process
setnetworkactive

RPC-JSON API: setnetworkactive
show

show-methods
verifychain

RPC-JSON API: verifychain
validBtcAdr

Validate S4-class BTCADR
txfee

Compute fee of a transaction
getnettotals

RPC-JSON API: getnettotals
verifytxoutproof

RPC-JSON API: verifytxoutproof
utxotype

Retrieving types of UTXOs
utxovalue

Retrieving values of UTXOs
intMinDay

Integer representation of a day-begin
rpcpost

HTTP post of RPC-JSON
getnetworkinfo

RPC-JSON API: getnetworkinfo
pruneblockchain

RPC-JSON API: pruneblockchain
intMaxDay

Integer representation of a day-end
getmempoolinfo

RPC-JSON API: getmempoolinfo
listbanned

RPC-JSON API: listbanned
getrawmempool

RPC-JSON API: getrawmempool
txinids

Retrieving the input transaction IDs
isNull

Test for empty EC point
txids

Retrieve TX Ids in block
txstats

Statistics of a transaction
getpeerinfo

RPC-JSON API: getpeerinfo
utxoage

Age of UTXOs
EcparamOrNull-class

S4 Class Union ECPARAM or NULL
ANSRPC-class

The ANSRPC class
PrivKey2PubKey

Create public key from private key
NullOrCharacter-class

S4 Class Union NULL or character
BTCADR-class

S4 class BTCADR
ECPOINT-class

S4 Class ECPOINT
PrivKey2Wif

Create WIF from a private key
NullOrInteger-class

S4 Class Union NULL or integer
ECPARAM-class

The ECPARAM class
CONRPC-class

The CONRPC class
clearbanned

RPC-JSON API: clearbanned
bkfee

Compute fee in a block
addnode

RPC-JSON API: addnode
Wif2PrivKey

Create private key from WIF
blockattime

Block height at time
base58CheckDecode

Base 58 binary-to-text-decoding
base58CheckEncode

Base 58 binary-to-text-encoding
PubHash2BtcAdr

Create BTC address from public key hash