Python SDK for Web3Research Platform
Project description
Web3Research-py
web3research-py
is the official python software development kit for all dashboards on Web3Research Platform
Installation
pip install -U web3research
Usage
Example: fetch and parse a USDT Transfer Event
import os
import web3
import web3research
from web3research.evm import SingleEventDecoder
# for internet
w3r = web3research.Web3Research(api_token=YOUT_APIKEY)
log = w3r.eth.events(
"address = unhex('dac17f958d2ee523a2206206994597c13d831ec7')", limit=1
)[0]
w3 = web3.Web3()
abi = {
"anonymous": False,
"inputs": [
{"indexed": True, "name": "from", "type": "address"},
{"indexed": True, "name": "to", "type": "address"},
{"indexed": False, "name": "value", "type": "uint256"},
],
"name": "Transfer",
"type": "event",
}
decoder = SingleEventDecoder(w3, event_abi=abi)
result = decoder.decode(log)
print(result)
You can read detailed guide on our document site
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
web3research-0.0.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file web3research-0.0.1.tar.gz
.
File metadata
- Download URL: web3research-0.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89593c7bb6e554e33d58ae5faad27ee85370255fe3182219352f7edc37a8c776 |
|
MD5 | 8c8f4f2e0671954d16ad4734da042282 |
|
BLAKE2b-256 | d8a897eb4393208539e09c47dcf5e63ab4210579697ec1404bf699d074b96f5e |
File details
Details for the file web3research-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: web3research-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fad8b4e251cbf1c3f43ef51dd9242d596c12e960be552bed7fffa190986d2ee4 |
|
MD5 | 79508a26f5b6b79ed1a9700caba6649e |
|
BLAKE2b-256 | fc8a547120774263ece162328ea3dc4db057b3d240d573b2e4b65d932cbd9977 |