This plug computes the total USD value of a wallet's holdings across a set of tokens held in socket storage. It asks the caller for holder_wallet and count. It loops over count token slots, reading each token, fetching its Chainlink USD price normalized to 18 decimals, composing Get Holding Value, and adding the result to a running total. Doing this by hand across many tokens, or on a stale price, misstates the aggregate holdings value the loop returns.
Actions · 13
Setto
Assigns a value to a named variable that later steps reference.
Setto
Assigns a value to a named variable that later steps reference.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Readmapvalueofinin
Reads a value from a keyed map in the socket's persistent storage.
Setto
Assigns a value to a named variable that later steps reference.
Getpriceofin
Reads the latest Chainlink price of a base asset in a quote asset, normalized to 18 decimals.
Usewhere
tokenis
holder_walletis
priceis
Composes another plug inside this one.
Calculate
Applies a binary arithmetic operation to two values and returns the result.
Setto
Assigns a value to a named variable that later steps reference.
Calculate
Applies a binary arithmetic operation to two values and returns the result.
Setto
Assigns a value to a named variable that later steps reference.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Bubble
Surfaces a value as an output of this plug.
Related plugs · 8
Not ready to run as it stands: it waits on values or a position of your own.