Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 21 hours ago
JSON representation

a python api-wrapper for moneroblocks.info

Awesome Lists containing this project

README

        

# moneroblocks
A Python 3 api-wrapper for moneroblocks.info Monero Block Explorer

docs: 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