💡EVM Logs Decoder
This function will decode EVM Logs given the appropriate ABI
UDF_EVM_DECODE_LOG()
Please note there are limitations on this function. It is not recommend to process more than 100,000 records at a time. Anything over that will likely cause timeouts. If you need large amounts of decoded data, please use the snowflake tables.
Syntax
Arguments
Required:
abi
(array) - The ABI (application binary interface) for the smart contractdata
(object) - The event data to decode
Sample Queries
Other Notes
The Flipside tables contain millions of ABIs (
dim_contract_abis
). We likely have the one you are looking for. If we do not, please submit ABIs here. Submitted ABIs will be available within 36 hours.Contracts that use proxies can prove challenging. If contract A is emitting events, but it uses proxy contract B, you likely need to use the ABI from contract B to decode the emitted events from contract A.
If we do not have the ABI, and you do, but do not want to give it to us or wait for us to ingest it, you can input ABIs manually into this function. You will likely need to wrap your ABI text in a
parse_json()
function.You can input ABIs at an individual event level if you choose, however if you are looking at more than one type of emitted event, you maybe need to add additional join keys on the topics / event signature.
crosschain.core.dim_evm_event_signatures
might be helpful for you here, along with the keccak256 function.
Last updated