We've assembled some unique and creative ready-to-use examples of Functions ranging across various use cases. By following the links below, you can explore different Functions examples and learn more about them.
Function | Description | Dataset | Runtime | Usage |
---|---|---|---|---|
Estimate Gas Price | Get the average gas price of the latest block by averaging gas prices across 100 transactions. | Block | Node.js (Functions code editor) | Functions and Streams Filter |
Check USDC Balance | Get USDC token balances of a wallet address across EVM blockchains. | Block | Node.js (.Zip upload) | Functions |
Find Whale Transaction | Get transactions with a value greater than a specified amount. | Block | Node.js (Functions code editor) | Functions and Streams Filter |
Check POAP Balance | Get POAP token balances of a wallet address along with token URI on Ethereum and Gnosis mainnet. | Block | Node.js (.Zip upload) | Functions |
Compute Block Metrics | Get vital block analytics data like active addresses, gas price, ETH transferred, biggest transactions, etc. | Block with receipts | Node.js (Functions code editor) | Functions |
Contribute to the Functions Library by opening a pull request to submit your Function.
If you'd like to request additional examples, please open an issue on the GitHub repository.