Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/choptastic/erlang-blockchain
A Erlang API for blockchain.info
https://github.com/choptastic/erlang-blockchain
Last synced: 21 days ago
JSON representation
A Erlang API for blockchain.info
- Host: GitHub
- URL: https://github.com/choptastic/erlang-blockchain
- Owner: choptastic
- License: mit
- Created: 2014-09-17T01:29:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-03T20:12:11.000Z (over 8 years ago)
- Last Synced: 2024-10-08T15:25:05.929Z (about 1 month ago)
- Language: Erlang
- Size: 3.91 KB
- Stars: 14
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Erlang Blockchain
A simple API to blockchain.info
Currently only exports two functions (more to come):
+ `get_address(Address)` -> `{CurrentValue, ListOfTransactions}`, where
`ListOfTransactions` 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, and `ListOfAddresses` is a simple list of the
addresses as binary strings. `Action` is either the atom `sent` or `received`.+ `format_amount(Satoshis)` - Converts an integer of Satoshis into a
formatted string of the format "2.165 BTC".# License
Author: Jesse Gumm (@jessegumm)
MIT License