JUMP TO👋 IntroductionAlchemy API OverviewEnhanced APIs OverviewFeature Support By ChainAlchemy Quickstart Guide📚 ResourcesError ReferenceCompute UnitsPricing PlansCompute Unit CostsThroughputBatch RequestsGas Limits for eth_call and eth_estimateGasHow to Implement Retries🛠️ Alchemy SDKAlchemy SDK QuickstartHow to use Alchemy SDK with TypescriptExamples Using the Alchemy SDKHow to Manage a Multichain Project Using Alchemy SDKAlchemy SDK Surface OverviewAlchemy SDK vs. Raw API MethodsSDK Core MethodscallpostestimateGaspostfindContractDeployerpostgetAssetTransferspostgetBalancepostgetBlockpostgetBlockNumberpostgetBlockWithTransactionspostgetCodepostgetFeeDatapostgetGasPricepostgetLogspostgetStorageAtpostgetTokenBalancespostgetTokenMetadatapostgetTransactionCountpostgetTransactionReceiptpostgetTransactionReceiptspostsendpostSDK NFT MethodsgetNftsForOwnergetgetNftMetadatagetgetNftMetadataBatchgetrefreshNftMetadatapostgetNftSalesgetsummarizeNftAttributesgetsearchContractMetadatagetgetNftsForOwnerIteratorgetgetNftsForContractIteratorgetgetContractMetadatagetgetNftsForContractgetgetOwnersForNftgetgetOwnersForContractgetgetSpamContractsgetisSpamContractgetrefreshContractgetgetFloorPricegetcomputeRaritygetverifyNftOwnershipgetSDK Transact MethodsgetTransactiongetsendTransactionpostsendPrivateTransactionpostcancelPrivateTransactionpostwaitForTransactionpostSDK Notify MethodsgetAllWebhooksgetgetAddressesgetgetNftFiltersgetupdateWebhookputcreateWebhookpostdeleteWebhookdeleteSDK WebSockets EndpointsSDK Ethers UtilsarrayifyformatUnitsconcathexConcatdnsEncodehexDataLengthformatEtherhexDataSlicehexStripZeroshashMessageisHexStringisValidNamejoinSignaturesplitSignaturetoUtf8ByteshexValuetoUtf8StringhexZeroPadzeroPadhexlifyidisBytesisBytesLikeInterfacenamehashparseEtherparseUnitsstripZerosSDK Debug MethodstraceCall - SDKtraceTransaction - SDKtraceBlock - SDK🎨 NFT APINFT API QuickStartNFT API Tutorials and ApplicationsNFT API Endpoints OverviewNFT API FAQOwnership & Token GatinggetNFTsgetgetOwnersForTokengetgetOwnersForCollectiongetisHolderOfCollectiongetgetContractsForOwnergetNFT Metadata AccessgetNFTMetadatagetgetNFTMetadataBatchpostgetContractMetadatagetgetContractMetadataBatchpostsearchContractMetadatagetCollectionsgetNFTsForCollectiongetSpam DetectiongetSpamContractsgetisSpamContractgetisAirdropgetreportSpamgetSales & Marketplace DatagetFloorPricegetgetNFTSalesgetRarity DatacomputeRaritygetsummarizeNFTAttributesget💸 Transfers API (Tx History)Transfers API QuickstartTransfers API Endpointsalchemy_getAssetTransferspost💰 Alchemy TransactTransact QuickstartTransaction SimulationAsset ChangesExecution SimulationBundle SimulationExamplesFAQsTransaction Simulation Endpointsalchemy_simulateAssetChangespostalchemy_simulateAssetChangesBundlepostalchemy_simulateExecutionpostalchemy_simulateExecutionBundlepostTransaction Simulation - TutorialsIntegrating Simulation with 1 line of codeBuilding a MetaMask Snap from scratchAsset Changes - ExplainedReinforced TransactionsGas Optimized Transactionsalchemy_sendGasOptimizedTransactionpostalchemy_getGasOptimizedTransactionStatuspostPrivate Transactionseth_sendPrivateTransactionposteth_cancelPrivateTransactionpost🧾 Transaction Receipts APITransaction Receipts Endpointsalchemy_getTransactionReceiptspost🪙 Token APIToken API QuickstartToken API Endpointsalchemy_getTokenBalancespostalchemy_getTokenMetadatapostalchemy_getTokenAllowancepost🔔 WebhooksNotify API QuickstartNotify Tutorials and ApplicationsNotify API FAQCustom Webhooks Quickstart (BETA)Custom Webhooks FAQCustom Webhooks GraphQL ExamplesNotify API MethodsGet all webhooksgetGet all addresses for an Address Activity webhookgetCreate webhookpostAdd and remove webhook addressespatchReplace webhook addressesputUpdate webhook statusputUpdate webhook NFT filterspatchUpdate NFT metadata webhook filterspatchGet all webhook NFT filtersgetDelete webhookdeleteWebhook TypesCustom WebhookAddress Activity WebhookMined Transaction WebhookDropped Transaction WebhookNFT Activity WebhookNFT Metadata Updates Webhook🔎 Trace APITrace API QuickstartTrace API Endpointstrace_callposttrace_blockposttrace_getposttrace_filterposttrace_transactionposttrace_rawTransactionposttrace_replayTransactionposttrace_replayBlockTransactionspostTrace API ResourcesWhat are EVM Traces?Trace API vs. Debug APIWhat is trace_transaction?What is trace_block?What is trace_filter?trace_call vs debug_traceCall🪲 Debug APIsDebug API QuickstartDebug API Endpointsdebug_traceBlockByHashpostdebug_traceBlockByNumberpostdebug_traceTransactionpostdebug_traceCallpost🔊 WebsocketsSubscription API QuickstartSubscription API Endpointsalchemy_minedTransactionsalchemy_pendingTransactionsnewPendingTransactionsnewHeadslogsBest Practices for Using WebSockets in Web3💎 EthereumEthereum API QuickStartEthereum API FAQEthereum Developer Guide to the MergeHow to decode an eth_call responseEthereum API Endpointseth_getBlockByHashposteth_getBlockByNumberposteth_blockNumberposteth_getBlockReceiptsposteth_getBlockTransactionCountByHashposteth_getBlockTransactionCountByNumberposteth_getTransactionByHashposteth_getTransactionByBlockHashAndIndexposteth_getTransactionByBlockNumberAndIndexposteth_getTransactionReceiptposteth_getTransactionCountposteth_callposteth_sendRawTransactionposteth_getCodeposteth_getBalanceposteth_accountsposteth_getStorageAtposteth_getProofposteth_getLogsposteth_newFilterposteth_newPendingTransactionFilterposteth_newBlockFilterposteth_getFilterChangesposteth_getFilterLogsposteth_uninstallFilterposteth_chainIdposteth_protocolVersionpostnet_listeningpostnet_versionposteth_getUncleCountByBlockHashposteth_getUncleCountByBlockNumberposteth_getUncleByBlockNumberAndIndexposteth_getUncleByBlockHashAndIndexposteth_estimateGasposteth_gasPriceposteth_feeHistoryposteth_maxPriorityFeePerGasposteth_createAccessListpostweb3_clientVersionpostweb3_sha3posteth_subscribeeth_unsubscribe💜 PolygonPolygon API QuickstartPolygon API FAQPolygon API Endpointseth_blockNumberposteth_getBlockByNumberposteth_getBlockByHashposteth_getBlockTransactionCountByNumberposteth_getBlockTransactionCountByHashposteth_getTransactionByHashposteth_getTransactionCountposteth_getTransactionByBlockHashAndIndexposteth_getTransactionReceiptposteth_getTransactionByBlockNumberAndIndexposteth_getTransactionReceiptsByBlockposteth_callposteth_sendRawTransactionposteth_getBalanceposteth_getStorageAtposteth_accountsposteth_getCodeposteth_getProofposteth_getLogsposteth_getFilterChangesposteth_getFilterLogsposteth_newBlockFilterposteth_newFilterposteth_newPendingTransactionFilterposteth_uninstallFilterposteth_getSignersAtHashposteth_chainIdposteth_getRootHashpostbor_getRootHashpostbor_getSignersAtHashpostbor_getAuthorpostnet_listeningpostnet_versionpostbor_getCurrentProposerpostbor_getCurrentValidatorsposteth_getUncleCountByBlockNumberposteth_getUncleCountByBlockHashposteth_getUncleByBlockHashAndIndexposteth_getUncleByBlockNumberAndIndexposteth_estimateGasposteth_gasPriceposteth_createAccessListpostweb3_clientVersionpostweb3_sha3posteth_subscribeeth_unsubscribe🪐 ArbitrumArbitrum API QuickstartArbitrum API FAQArbitrum vs. Ethereum API DifferencesArbitrum API Endpointseth_blockNumberposteth_getBlockByHashposteth_getBlockByNumberposteth_getBlockTransactionCountByHashposteth_getBlockTransactionCountByNumberposteth_getTransactionByBlockNumberAndIndex - arbitrumposteth_getTransactionByBlockHashAndIndex - arbitrumposteth_getTransactionByHashposteth_getTransactionCountposteth_getTransactionReceiptposteth_callposteth_sendRawTransactionposteth_accountsposteth_getProofposteth_getBalanceposteth_getCodeposteth_getStorageAtposteth_getLogsposteth_newFilterposteth_newBlockFilterposteth_newPendingTransactionFilterposteth_getFilterChangesposteth_getFilterLogsposteth_uninstallFilterposteth_chainIdpostnet_versionpostnet_listeningposteth_getUncleByBlockNumberAndIndexposteth_getUncleByBlockHashAndIndexposteth_getUncleCountByBlockHashposteth_getUncleCountByBlockNumberposteth_estimateGasposteth_maxPriorityFeePerGasposteth_gasPriceposteth_feeHistoryposteth_createAccessListpostweb3_clientVersionpostweb3_sha3posteth_subscribeeth_unsubscribe🔴 OptimismOptimism API QuickstartOptimism API FAQOptimism API Endpointseth_blockNumberposteth_getBlockByNumberposteth_getBlockByHashposteth_getBlockTransactionCountByNumberposteth_getBlockTransactionCountByHashposteth_getTransactionByBlockHashAndIndexposteth_getTransactionByBlockNumberAndIndexposteth_getTransactionCountposteth_getTransactionByHashposteth_getTransactionReceiptposteth_callposteth_sendRawTransactionposteth_getBalanceposteth_accountsposteth_getProofposteth_getCodeposteth_getStorageAtposteth_getLogsposteth_newFilterposteth_newBlockFilterposteth_newPendingTransactionFilterposteth_getFilterLogsposteth_getFilterChangesposteth_uninstallFilterposteth_protocolVersionposteth_chainIdpostnet_listeningposteth_syncingpostnet_versionposteth_getUncleByBlockHashAndIndexposteth_getUncleByBlockNumberAndIndexposteth_getUncleCountByBlockHashposteth_getUncleCountByBlockNumberposteth_estimateGasposteth_gasPriceposteth_subscribeeth_unsubscribe❇️ SolanaSolana API QuickstartSolana API FAQSolana API EndpointsgetBlockProductionpostgetBlockpostgetBlockTimepostgetBlockCommitmentpostgetBlocksWithLimitpostgetBlockHeightpostgetBlockspostisBlockhashValidpostgetBalancepostgetLargestAccountspostgetAccountInfopostgetVoteAccountspostgetMultipleAccountspostgetProgramAccountspostgetClusterNodespostgetHealthpostgetVersionpostgetIdentitypostgetInflationGovernorpostgetInflationRatepostgetInflationRewardpostgetSupplypostgetEpochSchedulepostgetEpochInfopostgetFeeForMessagepostgetHighestSnapshotSlotpostgetGenesisHashpostgetRecentPerformanceSamplespostgetFirstAvailableBlockpostgetMinimumBalanceForRentExemptionpostgetTransactionpostsendTransactionpostgetSignatureStatusespostgetSignaturesForAddresspostsimulateTransactionpostminimumLedgerSlotpostgetMaxShredInsertSlotpostgetSlotpostgetSlotLeaderpostgetSlotLeaderspostgetMaxRetransmitSlotpostgetTokenAccountsByOwnerpostgetTokenAccountBalancepostgetTokenSupplypostrequestAirdroppostsignatureSubscribesignatureUnsubscribeslotSubscribeslotUnsubscribeslotUpdateSubscribeblockSubscribeblockUnsubscribelogsSubscribelogsUnsubscribe⭐️ AstarAstar API QuickstartAstar API FAQAstar API Endpointseth_getBlockTransactionCountByHashposteth_getBlockTransactionCountByNumberposteth_blockNumberposteth_getBlockByNumberposteth_getBlockByHashposteth_getTransactionByHashposteth_getTransactionReceiptposteth_getTransactionCountposteth_getTransactionByBlockHashAndIndexposteth_getTransactionByBlockNumberAndIndexposteth_callposteth_sendRawTransactionposteth_accountsposteth_getStorageAtposteth_getCodeposteth_getBalancepostnet_versionposteth_chainIdposteth_getUncleByBlockNumberAndIndexposteth_estimateGasposteth_maxPriorityFeePerGasposteth_gasPricepostweb3_clientVersionpostweb3_sha3posteth_subscribeeth_unsubscribebor_getSignersAtHash - Polygon/{apiKey}eth_getUncleCountByBlockNumberpost https://opt-mainnet.g.alchemy.com/v2/{apiKey}Returns the number of uncles in a block matching the given block number.