A Python package to parse Ethereum contract ABI files
Project description
abi_parser
A simple way to parse your ABIs in Python.
Installation
pip install abi_parser
from abi_parser import ContractABI
abi = ContractABI('<PATH TO ABI JSON'>)
# name
name = abi.name
# functions
functions = abi.functions
# events - todo
# events = abi.events
# get function by name
function = abi.get_function('<function_name>')
# bytecode - todo
# bytecode = abi.bytecode
# get function by signature - todo
# function = abi.get_function_by_signature('<function_signature>')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
abiparser-1.0.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for abiparser-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6396f3cfcb1daccf13daab4dbc7fbad6a9d3d4159ab640b940ee0641fc31f3f |
|
MD5 | 94a194e90787787cd3d028f550795406 |
|
BLAKE2b-256 | 3b6e9dd2b5f55e9f3e75482f898dd09a8bfef4fd22b54bab24da49806e38f237 |