A simple API to blockchain.info
Currently only exports two functions (more to come):
-
get_address(Address)
->{CurrentValue, ListOfTransactions}
, whereListOfTransactions
is a 4-tuple:{Hash, Time, Value, Action, ListOfAddresses}
.Time
is an integer representing the unix timestamp of the transaction, Value is the integer value in Satoshis, andListOfAddresses
is a simple list of the addresses as binary strings.Action
is either the atomsent
orreceived
. -
format_amount(Satoshis)
- Converts an integer of Satoshis into a formatted string of the format "2.165 BTC".
Author: Jesse Gumm (@jessegumm)
MIT License