Skip to main content

Functions Library Overview

Updated on
Jan 02, 2025

QuickNode Functions is an extremely versatile product, allowing arbitrary code to be run at the edge within the QuickNode infrastructure. Customers have offloaded small backend jobs and replaced full applications.

We've assembled a library of ready-to-use code samples to accelerate your development. These samples demonstrate how to use Functions effectively and integrate them into your existing architecture, including examples that leverage other QuickNode products like Streams and Key-Value Store.

The code samples below can be used in a variety of ways, including as standalone Functions, filters for your Streams, or custom Streams destinations through a Function.

FunctionChain(s)DescriptionDatasetRuntimeUsage
Manage Wallet PortfolioSolanaAdd and remove Solana wallets to a portfolio using Key-Value store and fetch the portfolio details.BlockNode.jsStandalone Function
Compute DEX MetricsSolanaGet valuable Solana DEX data like transactions, value change, unique users, and transaction share major DEX protocols, including Phoenix, Raydium, and Jupiter.Programs with logsNode.jsStandalone Function
Compute Block MetricsEVMGet vital block analytics data like active addresses, gas price, ETH transferred, biggest transactions, etc.Block with receiptsNode.jsStandalone Function and Stream Filter
Compute Block MetricsSolanaGet vital Solana block analytics data like compute units, fees, program invocations, transaction count, and account activity.BlockNode.jsStandalone Function
Compute Contract DeploymentsEVMCompute the number of smart contracts deployed in a block.Debug_traceNode.jsStandalone Function
Estimate Gas PriceEVMGet the average gas price of the latest block by averaging gas prices across 100 transactions.BlockNode.jsStandalone Function and Stream Filter
Find Whale TransactionsEVMGet transactions with a value greater than a specified amount.BlockNode.jsStandalone Function and Stream Filter
Fetch TRC20 (TRON) MetadataTronRetrieve essential TRC20 token metadata such as name, symbol, decimals, and total supply, supporting both TRON native and EVM-compatible addresses for seamless integration.no datasetNode.jsStandalone Function
Translate Txns (multi-chain)EVMTranslate blockchain transactions into human readable format for multiple blockchains.no datasetNode.jsStandalone Function
Stream Translated TxnsEVMSet up a Stream of human readable transaction data.TransactionsNode.jsStandalone Function and Stream Filter
Stream to DiscordEVMHave your QuickNode Stream feed data directly into a Discord channel.LogsNode.jsCustom Stream Destination via Function
Detect Token AllowanceEVMGet ERC-20 token approval events and details related to those approvals.LogsNode.jsStandalone Function
Detect Uniswap SwapsEthereumGet Uniswap V2&V3 swap events along with details related to those swaps.Debug_TraceNode.jsStandalone Function
Compute Validator MetricsSolanaGet Solana validator's voting patterns and performance metrics.Programs with logsNode.jsStandalone Function
Fetch Solana NFTsSolanaFetch NFTs and related metadata for a given Solana wallet.no datasetNode.jsStandalone Function
Fetch SPL TokensSolanaFetch SPL tokens and their balances for a given Solana wallet.no datasetNode.jsStandalone Function

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.

Share this doc