跳至主要內容

Functions Library Overview

更新於
2025年11月12日
Deprecation Notice: Quicknode Functions
Deprecation Notice: Quicknode Functions

Quicknode Functions will be deprecated and will no longer be available soon.

:::

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.

功能Chain(s)說明DatasetRuntime用法
Manage Wallet Portfolio索拉納Add and remove Solana wallets to a portfolio using Key-Value store and fetch the portfolio details.區塊Node.jsStandalone Function
Compute DEX Metrics索拉納Get 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
Compute Block Metrics索拉納Get vital Solana block analytics data like compute units, fees, program invocations, transaction count, and account activity.區塊Node.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.區塊Node.jsStandalone Function 以及 Stream Filter
Find Whale TransactionsEVMGet transactions with a value greater than a specified amount.區塊Node.jsStandalone Function 以及 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.交易Node.jsStandalone Function 以及 Stream Filter
Stream to DiscordEVMHave your Quicknode Stream feed data directly into a Discord channel.日誌Node.jsCustom Stream Destination via Function
Detect Token AllowanceEVMGet ERC-20 token approval events and details related to those approvals.日誌Node.jsStandalone Function
Detect Uniswap Swaps以太坊Get Uniswap V2&V3 swap events along with details related to those swaps.Debug_TraceNode.jsStandalone Function
Compute Validator Metrics索拉納Get Solana validator's voting patterns and performance metrics.Programs with logsNode.jsStandalone Function
Fetch Solana NFTs索拉納Fetch NFTs and related metadata for a given Solana wallet.no datasetNode.jsStandalone Function
Fetch SPL Tokens索拉納Fetch 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.

分享這份文件