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
Sum Task
Accepts multiple numerical inputs and returns the sum of them.
Parameters
values
: an array of values to sum.allowedFaults
(optional): the maximum number of input tasks that can error without the Sum task erroring. If not specified, this value defaults toN - 1
, whereN
is the number of inputs.
Outputs
The sum of the values in the values
array.
Example
my_sum_task [type="sum"
values=<[ $(fetch1), $(fetch2), $(fetch3) ]>
allowedFaults=1]
Given the inputs 2
, 5
, and 20
, the task will return 27
.