wallet: Get wallet info

Description Usage Arguments Details Value Examples

Description

Get wallet info from blockchain.info.

Usage

1
wallet(id, satoshi = FALSE, offset = 0, tx_max = 100, max_attempts = 10)

Arguments

id

character, wallet ID.

satoshi

logical, if set to TRUE, retain Satoshi units from blockchain.info. Otherwise all values are in Bitcoin (Satoshis / 10e7).

offset

integer, shift transaction number retrieval forward by this amount.

tx_max

integer, maximum number of transactions to return. Defaults to 100. NULL will attempt to retrieve all transactions.

max_attempts

integer, maximum number of recursive attempts to connect to blockchain.info in case of connection error.

Details

The current implementation of this function grabs information for specified wallets only from blockchain.info. Note that it is possible to get a connection error if you make too many API calls too quickly or just get unlucky with blockchain.info accessibility. wallet will attempt connection recursively up to max_attempts times. The default is ten attempts. If the first attempt fails, a notification will print to the console. If not successful after max_attempts attempts, a failure notification will be printed.

Value

a list.

Examples

1
## Not run: wallet("1KennyH9grzif79WbaQDHpqgTnm25j4rRj")

leonawicz/rockchain documentation built on May 29, 2019, 3:39 a.m.