
Plug · Acts onchain
Surfaces a value as an output of this plug. The value is echoed into a dedicated slot and declared as the program's return: what a caller composing this plug through Use reads back. It is the inverse of Take. Reach for it to return a computed amount, a position id, or a boolean from a reusable plug, so the plug that uses it can coil the result into its own next step.
Get Chainlink Token Value (USD)


1·Take
Opening with a declared parameter, token is left for the caller to supply at execution time, naming the asset to be valued.
2·Take
A second parameter, amount, is declared as caller-supplied, giving the quantity that the price will be applied to.
3·Use
Composing the Get Chainlink Price (USD) plug pulls its price-reading logic into this one, returning the token's USD rate.
4·Calculate
Multiplying the composed price by amount converts the supplied quantity into its USD value.
5·Bubble
Surfacing that product returns the computed USD value as the output of this plug.