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_estimateGas🛠️ Alchemy SDKAlchemy SDK QuickstartHow to use Alchemy SDK with TypescriptExamples Using the Alchemy SDKAlchemy SDK Surface OverviewAlchemy SDK vs. Raw API MethodsSDK Core MethodscallpostestimateGaspostfindContractDeployerpostgetAssetTransferspostgetBalancepostgetBlockpostgetBlockNumberpostgetBlockWithTransactionspostgetCodepostgetFeeDatapostgetGasPricepostgetLogspostgetStorageAtpostgetTokenBalancespostgetTokenMetadatapostgetTransactionCountpostgetTransactionReceiptpostgetTransactionReceiptspostsendpostSDK NFT MethodsgetNftsForOwnergetgetNftMetadatagetgetNftMetadataBatchgetrefreshNftMetadatapostgetNftSalesgetsummarizeNftAttributesgetsearchContractMetadatagetgetNftsForOwnerIteratorgetgetNftsForContractIteratorgetgetContractMetadatagetgetNftsForContractgetgetOwnersForNftgetgetOwnersForContractgetgetSpamContractsgetisSpamContractgetrefreshContractgetgetFloorPricegetcomputeRaritygetverifyNftOwnershipgetSDK Transact MethodsgetTransactionpostsendTransactionpostsendPrivateTransactionpostcancelPrivateTransactionpostwaitForTransactionpostSDK Notify MethodsgetAllWebhooksgetgetAddressesgetgetNftFiltersgetupdateWebhookputcreateWebhookpostdeleteWebhookdeleteSDK WebSockets Endpoints🎨 NFT APINFT API QuickStartNFT API Tutorials and ApplicationsNFT API Endpoints OverviewNFT API FAQOwnership & Token GatinggetNFTsgetgetOwnersForTokengetgetOwnersForCollectiongetisHolderOfCollectiongetgetContractsForOwnergetNFT Metadata AccessgetNFTMetadatagetgetNFTMetadataBatchpostgetContractMetadatagetgetContractMetadataBatchpostreingestContractgetsearchContractMetadatagetCollectionsgetNFTsForCollectiongetSpam DetectiongetSpamContractsgetisSpamContractgetisAirdropgetreportSpamgetSales & Marketplace DatagetFloorPricegetgetNFTSalesgetRarity DatacomputeRaritygetsummarizeNFTAttributesget💸 Transfers API (Tx History)Transfers API QuickstartTransfers API Endpointsalchemy_getAssetTransferspost💰 Alchemy TransactTransact QuickstartTransaction SimulationAsset ChangesExecution SimulationBundle SimulationExamplesFAQsTransaction Simulation Endpointsalchemy_simulateAssetChangespostalchemy_simulateExecutionpostalchemy_simulateAssetChangesBundlepostalchemy_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🔔 Notify APINotify API QuickstartNotify Tutorials and ApplicationsNotify API FAQCustom Webhooks QuickstartCustom 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 TypesAddress Activity WebhookMined Transaction WebhookDropped Transaction WebhookNFT Activity WebhookNFT Metadata Updates Webhook🔎 Trace APITrace API QuickstartTrace API Endpointstrace_callposttrace_blockposttrace_getposttrace_filterposttrace_transactionposttrace_rawTransactionposttrace_replayBlockTransactionsposttrace_replayTransactionpostTrace 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_traceCallpostdebug_traceTransactionpostdebug_traceBlockByNumberpostdebug_traceBlockByHashpost🔊 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 EndpointsGetting Blockseth_getBlockByHashposteth_blockNumberposteth_getBlockByNumberposteth_getBlockReceiptsposteth_getBlockTransactionCountByHashposteth_getBlockTransactionCountByNumberpostReading Transactionseth_getTransactionByHashposteth_getTransactionByBlockHashAndIndexposteth_getTransactionByBlockNumberAndIndexposteth_getTransactionReceiptposteth_getTransactionCountpostWriting Transactions & EVM Executioneth_sendRawTransactionposteth_callpostAccount Informationeth_getCodeposteth_getBalanceposteth_accountsposteth_getStorageAtposteth_getProofpostEvent Logseth_getLogsposteth_newFilterposteth_newPendingTransactionFilterposteth_newBlockFilterposteth_getFilterChangesposteth_getFilterLogsposteth_uninstallFilterpostChain Informationeth_chainIdposteth_protocolVersionpostnet_listeningpostnet_versionpostGetting Uncleseth_getUncleCountByBlockHashposteth_getUncleCountByBlockNumberposteth_getUncleByBlockNumberAndIndexposteth_getUncleByBlockHashAndIndexpostGas Estimationeth_estimateGasposteth_gasPriceposteth_feeHistoryposteth_maxPriorityFeePerGasposteth_createAccessListpostWeb3web3_clientVersionpostweb3_sha3postReal-time Eventseth_subscribeeth_unsubscribe💜 PolygonPolygon API QuickstartPolygon API FAQPolygon API EndpointsGetting Blockseth_blockNumberposteth_getBlockByNumberposteth_getBlockByHashpostReading Transactionseth_getTransactionByHashposteth_getTransactionCountposteth_getTransactionByBlockHashAndIndexposteth_getBlockTransactionCountByNumberposteth_getTransactionReceiptposteth_getBlockTransactionCountByHashposteth_getTransactionByBlockNumberAndIndexposteth_getTransactionReceiptsByBlockpostWriting Transactions & EVM Executioneth_callposteth_sendRawTransactionpostAccount Informationeth_getBalanceposteth_getStorageAtposteth_accountsposteth_getCodeposteth_getProofpostEvent Logseth_getLogsposteth_getFilterChangesposteth_getFilterLogsposteth_newBlockFilterposteth_newFilterposteth_newPendingTransactionFilterposteth_uninstallFilterpostChain Informationeth_getSignersAtHashposteth_chainIdposteth_getRootHashpostbor_getAuthorpostnet_listeningpostnet_versionpostbor_getCurrentProposerpostbor_getCurrentValidatorspostbor_getRootHashpostGetting Uncleseth_getUncleCountByBlockNumberposteth_getUncleCountByBlockHashposteth_getUncleByBlockHashAndIndexposteth_getUncleByBlockNumberAndIndexpostGas Estimationeth_estimateGasposteth_gasPriceposteth_createAccessListpostWeb3web3_clientVersionpostweb3_sha3postReal-time Eventseth_subscribeeth_unsubscribe🪐 ArbitrumArbitrum API QuickstartArbitrum API FAQArbitrum API EndpointsGetting Blockseth_blockNumberposteth_getBlockByHashposteth_getBlockByNumberposteth_getBlockTransactionCountByHashposteth_getBlockTransactionCountByNumberpostReading Transactionseth_getTransactionByBlockNumberAndIndexposteth_getTransactionByBlockHashAndIndexposteth_getTransactionByHashposteth_getTransactionReceiptposteth_getTransactionCountpostWriting Transactions & EVM Executioneth_callposteth_sendRawTransactionpostAccount Informationeth_accountsposteth_getProofposteth_getBalanceposteth_getCodeposteth_getStorageAtpostEvent Logseth_getLogsposteth_newFilterposteth_newBlockFilterposteth_newPendingTransactionFilterposteth_getFilterChangesposteth_getFilterLogsposteth_uninstallFilterpostChain Informationeth_chainIdpostnet_versionpostnet_listeningpostGetting Uncleseth_getUncleByBlockNumberAndIndexposteth_getUncleByBlockHashAndIndexposteth_getUncleCountByBlockHashposteth_getUncleCountByBlockNumberpostGas Estimationeth_estimateGasposteth_maxPriorityFeePerGasposteth_gasPriceposteth_feeHistoryposteth_createAccessListpostWeb3web3_clientVersionpostweb3_sha3postReal-time Eventseth_subscribeeth_unsubscribe🔴 OptimismOptimism API QuickstartOptimism API FAQOptimism API EndpointsGetting Blockseth_blockNumberposteth_getBlockByNumberposteth_getBlockByHashposteth_getBlockTransactionCountByNumberposteth_getBlockTransactionCountByHashpostReading Transactionseth_getTransactionByBlockHashAndIndexposteth_getTransactionByBlockNumberAndIndexposteth_getTransactionCountposteth_getTransactionByHashposteth_getTransactionReceiptpostWriting Transactions & EVM Executioneth_callposteth_sendRawTransactionpostAccount Informationeth_getBalanceposteth_accountsposteth_getProofposteth_getCodeposteth_getStorageAtpostEvent Logseth_getLogsposteth_newFilterposteth_newBlockFilterposteth_newPendingTransactionFilterposteth_getFilterLogsposteth_getFilterChangesposteth_uninstallFilterpostChain Informationeth_protocolVersionposteth_chainIdpostnet_listeningposteth_syncingpostnet_versionpostGetting Uncleseth_getUncleByBlockHashAndIndexposteth_getUncleByBlockNumberAndIndexposteth_getUncleCountByBlockHashposteth_getUncleCountByBlockNumberpostGas Estimationeth_estimateGasposteth_gasPricepostReal-time Eventseth_subscribeeth_unsubscribe❇️ SolanaSolana API QuickstartSolana API FAQSolana API EndpointsGetting BlocksgetBlockProductionpostgetBlockpostgetBlockTimepostgetBlockCommitmentpostgetBlocksWithLimitpostgetBlockHeightpostgetBlockspostisBlockhashValidpostAccount InformationgetBalancepostgetLargestAccountspostgetAccountInfopostgetVoteAccountspostgetMultipleAccountspostgetProgramAccountspostNode InformationgetClusterNodespostgetHealthpostgetVersionpostgetIdentitypostNetwork InflationgetInflationGovernorpostgetInflationRatepostgetInflationRewardpostgetSupplypostNetwork InformationgetEpochSchedulepostgetEpochInfopostgetFeeForMessagepostgetHighestSnapshotSlotpostgetGenesisHashpostgetRecentPerformanceSamplespostgetFirstAvailableBlockpostgetMinimumBalanceForRentExemptionpostTransaction InformationgetTransactionpostsendTransactionpostgetSignatureStatusespostgetSignaturesForAddresspostsimulateTransactionpostSlot InformationminimumLedgerSlotpostgetMaxShredInsertSlotpostgetSlotpostgetSlotLeaderpostgetSlotLeaderspostgetMaxRetransmitSlotpostToken InformationgetTokenAccountsByOwnerpostgetTokenAccountBalancepostgetTokenSupplypostWebsocketssignatureSubscribesignatureUnsubscribeslotSubscribeslotUnsubscribeslotUpdateSubscribeblockSubscribeblockUnsubscribelogsSubscribelogsUnsubscribe⭐️ AstarAstar API QuickstartAstar API FAQAstar API EndpointsGetting Blockseth_getBlockTransactionCountByHashposteth_getBlockTransactionCountByNumberposteth_blockNumberposteth_getBlockByNumberposteth_getBlockByHashpostReading Transactionseth_getTransactionByHashposteth_getTransactionReceiptposteth_getTransactionCountposteth_getTransactionByBlockHashAndIndexposteth_getTransactionByBlockNumberAndIndexpostWriting Transactions & EVM Executioneth_callposteth_sendRawTransactionpostAccount Informationeth_accountsposteth_getStorageAtposteth_getCodeposteth_getBalancepostChain Informationnet_versionposteth_chainIdpostGetting Uncleseth_getUncleByBlockNumberAndIndexpostGas Estimationeth_estimateGasposteth_maxPriorityFeePerGasposteth_gasPricepostWeb3web3_clientVersionpostweb3_sha3postReal-time Eventseth_subscribeeth_unsubscribegetBlockpost https://alchemy-sdk-core-example.com/{apiKey}/getBlockReturns the block from the network based on the provided block number or hash.