Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikeshultz/py4byte
Library for using 4byte and blind-decoding of transactions and events
https://github.com/mikeshultz/py4byte
Last synced: about 1 month ago
JSON representation
Library for using 4byte and blind-decoding of transactions and events
- Host: GitHub
- URL: https://github.com/mikeshultz/py4byte
- Owner: mikeshultz
- License: mit
- Created: 2020-11-24T18:28:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-26T04:06:46.000Z (almost 4 years ago)
- Last Synced: 2024-09-18T05:46:28.457Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py4byte
Library for using 4byte and blind-decoding of transactions and events
## Functions
### signatures(kwargs)
Resolve signatures using the 4byte directory.
#### Arguments
These are the same arguments for the [4byte.directory REST API](https://www.4byte.directory/docs/)
- `text_signature`
- `text_signature__iexact`
- `text_signature__contains`
- `text_signature__icontains`
- `text_signature__startswith`
- `text_signature__istartswith`
- `text_signature__endswith`
- `text_signature__iendswith`
- `hex_signature`### receipt_events(receipt)
Given a Web3 or JSON-like transaction receipt, attempt to decode events to a text signature.
### transaction_call(transaction)
Given a Web3 or JSON-like transaction, attempt to decode the function signature of a contract call.