Function Lookups
The first 10 bytes of each contract call is a shortened hash of the function signature. With a database known hashes can be resolved to stored ABIs.
The lookup service allows to look up function signatures to their original ABI (Application Binary Interface).
If a function signature is not found in the Vechain b32 database, the proxy will search for a match in the Ethereum database.
GET /<hash>
Example:
- https://sig.api.vechain.energy/0x76e9d066 (opens in a new tab)
- https://sig.api.vechain.energy/0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925?event=true (opens in a new tab)
Data Decoding
Additionally, if a whole data clause is provided, an attempt will be made to decode it using the corresponding ABI.
GET /<data>
Example:
Event Lookups
The topic0
of emitted events is the event signature, which can be used to look up the corresponding ABI in the public databases.
GET /<hash>?event=true
Example: