Get wallet info from blockchain.info.

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.

Value

a list.

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.

Examples

# NOT RUN {
wallet("1KennyH9grzif79WbaQDHpqgTnm25j4rRj")
# }