Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psqnt/moneroblocks
a python api-wrapper for moneroblocks.info
https://github.com/psqnt/moneroblocks
blockchain-analysis blockchain-explorer cryptocurrency monero monero-api python-3 python3
Last synced: 2 days ago
JSON representation
a python api-wrapper for moneroblocks.info
- Host: GitHub
- URL: https://github.com/psqnt/moneroblocks
- Owner: psqnt
- License: mit
- Created: 2019-05-16T13:50:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-16T21:21:30.000Z (over 5 years ago)
- Last Synced: 2024-12-18T15:11:36.333Z (4 days ago)
- Topics: blockchain-analysis, blockchain-explorer, cryptocurrency, monero, monero-api, python-3, python3
- Language: Python
- Homepage: https://moneroblocks.info
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# moneroblocks
A Python 3 api-wrapper for moneroblocks.info Monero Block Explorerdocs: https://github.com/pasquantonio/moneroblocks/blob/master/docs.md
api reference: https://moneroblocks.info/api
( API reference is out of date, the json responses are slightly different than the ones displayed in api reference)
## Install
```
pip install moneroblocks
```
if not in python3 virtualenv, make sure to specify python3 pip
```
pip3 install moneroblocks
```## Usage
```python
from moneroblocks import blockexplorer# get stats
stats = get_stats()# get block by height
height = '1830280'
block = blockexplorer.get_block(height)# get transaction
tx_hash = '2ecbd1c3bacef9dc1cb0ab96c989b4b908208261bb1d6c9f8e5cdbf0b66d077e'
tx_data = blockexplorer.get_transaction(tx_hash)
```## Issues
API reference on monerblocks.info shows a block returns tx hashes but it no longer does this