NODE OPERATORS Overview Running a Chainlink Node Fulfilling Requests Run an Ethereum Client Performing System Maintenance Connecting to a Remote Database Configuration Variables Enabling HTTPS Connections Best Security and Operating Practices Best Practices for Nodes on AWS Miscellaneous
ORACLE JOBS Migrating to v2 Jobs Jobs Cron Direct Request Flux Monitor Keeper Off-chain Reporting Webhook Tasks HTTP Bridge JSON Parse CBOR Parse ETH ABI Decode ETH ABI Decode Log ETH ABI Encode ETH Call ETH Tx Multiply Divide Any Mean Median Mode Sum
ETH ABI Decode Log Task
Decodes a log emitted by an ETH contract.
Parameters
abi
: a canonical ETH log event definition. Should be formatted exactly as in Solidity. Each argument must be named. Examples:NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)
AuthorizedSendersChanged(address[] senders)
data
: the ABI-encoded log data. Can be:- a byte array
- a hex-encoded string beginning with
0x
- ... but generally should just be set to
$(jobRun.logData)
(see the Direct Request page)
topics
: the ABI-encoded log topics (i.e., theindexed
parameters)- an array of bytes32 values
- an array of hex-encoded bytes32 values beginning with
0x
- ... but generally should just be set to
$(jobRun.logTopics)
(see the Direct Request page)
Outputs
A map containing the decoded values.
Example
decode [type="ethabidecodelog"
abi="NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)"
data="$(jobRun.logData)"
topics="$(jobRun.logTopics)"]
This task will return a map with the following schema:
{
"roundId": ..., // a number
"startedBy": ..., // an address
"startedAt": ..., // a number
}