A Python Wrapper Implementation of Etherscan
Project description
pywalletscan
A Python Wrapper Implementation of Etherscan
Prerequisite
Pywalletscan uses Etherescan API as a datasource. API key is required to run. Please refer to Getting an API Key on Etherscan Web page.
Getting Started
>>> import pywalletscan as scan
>>> from pprint import pprint
>>> res = scan.get_transaction(network="sepolia", address=f"{YOUR_WALLET_ADDRESS}", api_key=f"{YOUR_API_KEY}")
>>> pprint(res)
[{'blockHash': '0x8ed677f6e5c21dfc528f76124d739591bf1087dc7e5a4f0e212c7cba1d654396',
'blockNumber': '5419226',
'confirmations': '13',
'contractAddress': '',
'cumulativeGasUsed': '153392',
'from': '0x7ed746476a7f6520babd24eee1fdbcd0f7fb271f',
'functionName': '',
'gas': '84000',
'gasPrice': '3982623228',
'gasUsed': '21000',
'hash': '0x9e86110e2e78382e844487d1442175d9f081c9de0b567d2fc8ace04dac889108',
'input': '0x',
'isError': '0',
'methodId': '0x',
'nonce': '819302',
'timeStamp': '1709612220',
'to': '0xede522b5cb39606b4f46d85cd9ea786371fc5401',
'transactionIndex': '4',
'txreceipt_status': '1',
'value': '500000000000000000'}]
>>>
Recognized network
goerli, sepolia, eth(etherium) (Case insensitive)
Build
python setup.py sdist bdist_wheel
# Test
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywalletscan-0.0.8.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file pywalletscan-0.0.8.tar.gz
.
File metadata
- Download URL: pywalletscan-0.0.8.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cad951aeba7af1179376dadf7649237cdb903c5e37f7b014dd47a89710523bb |
|
MD5 | 3941e5e91f7cc8e0609015c780b7fad9 |
|
BLAKE2b-256 | 7f3c4a9aa3c2426f6da7ded0a080a41790521d38380e9cee0fda5440e2d073b4 |
File details
Details for the file pywalletscan-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: pywalletscan-0.0.8-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c71c484a4f674cd34dca9e6baec1961f2c825af063eaa874f41bc5dfec13d0 |
|
MD5 | 45cb7844c6bed47c19d5ec72ce16ca6f |
|
BLAKE2b-256 | 4d8f6251dcd78abcfde62e9f7c2ff436bc2dbf2364784d654abd092b92b64b4c |