
Plug · Acts onchain
Declares a named parameter whose value the caller supplies at execution time. The slot stays open at compile time and is reported as a parameter of the plug; downstream steps coil it like any other value. When another plug composes this one through Use, its Takes become that step's inputs. Reach for it to make a plug reusable: take an amount, a token, or a recipient rather than hardcoding it, and let each caller bind its own value.
Get Chainlink Token Value (USD)


1·Take
Step one declares a parameter named token, whose value the caller supplies when the plug runs.
2·Take
Next comes a second parameter named amount, also filled in by the caller at execution time.
3·Use
This step composes another plug, Get Chainlink Price (USD), pulling its price result into this transaction.
4·Calculate
Multiplying the composed price from slot 3 by the caller supplied amount from slot 2 produces the total value.
5·Bubble
Finally the product from slot 3 of the math step is surfaced as this plug's output.