vechain.energy
Public APIs
Signature Lookup

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:

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:

https://sig.api.vechain.energy/0x76e9d0660000000000000000000000004e17357053da4b473e2daa2c65c2c949545724b8000000000000000000000000d8ccdd85abdbf68dfec95f06c973e87b1b5a999700000000000000000000000000000000000000000000000000000000098fa0970000000000000000000000000000000000000000000000000000000000000000 (opens in a new tab)

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:

https://sig.api.vechain.energy/0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef?event=true (opens in a new tab)