Alchemy SDK vs. Raw API Methods

A list of all Alchemy SDK methods and their corresponding General API methods

Alchemy SDK MethodsRaw API MethodsUse Case
SDK Core
calleth_call - Also available on Polygon, Arbitrum, Optimism, Astar.Executes a new message call immediately without creating a transaction on the block chain.
estimateGaseth_estimateGas - Also available on Polygon, Arbitrum, Optimism, Astar.Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain.
findContractDeployerFinds the address that deployed the provided contract and block number it was deployed in.
getAssetTransfersalchemy_getAssetTransfers - Transfers APIThe Transfers API allows you to easily fetch historical transactions for any address across Ethereum and supported L2s including Polygon, Arbitrum, and Optimism.
getBalanceeth_getBalance, getBalance (Solana) - Also available on Arbitrum, Polygon.Returns the balance of the account of a given address.
getBlockgetBlock (Solana), eth_getBlockByHash, eth_getBlockByNumberReturns the block from the network based on the provided block number or hash.
getBlockNumbereth_blockNumber - Also available on Polygon, Arbitrum, Optimism, Astar.Returns the number of the most recent block.
getBlockWithTransactionseth_getBlockTransactionCountByHash, eth_getBlockTransactionCountByNumberReturns the block from the network based on the provided block number or hash. Includes fully transactions from the block.
getCodeeth_getCode - Also available on Polygon, Arbitrum, Optimism.Returns code at a given address.
feeDataeth_maxPriorityFeePerGas - Also available on Arbitrum, Astar.Returns the recommended fee data to use in a transaction. For an EIP-1559 transaction, the maxFeePerGas and maxPriorityFeePerGas should be used. For legacy transactions and networks which do not support EIP-1559, the gasPrice should be used.
getGasPriceeth_gasPrice - Also available on Polygon, Arbitrum, Optimism, Astar.Returns the current price per gas in wei.
getLogseth_getLogs - Also available on Polygon, Arbitrum, Optimism.Returns an array of all logs matching a given filter object.
getStorageAteth_getStorageAt - Also available on Polygon, Arbitrum, Optimism.Returns the value from a storage position at a given address, or in other words, returns the state of the contract's storage, which may not be exposed via the contract's methods.
getTokenBalancesalchemy_getTokenBalances - Token APIReturns token balances for a specific address given a list of contracts.
getTokenMetadataalchemy_getTokenMetadata - Token APIReturns metadata (name, symbol, decimals, logo) for a given token contract address.
getTransactionCounteth_getTransactionCount - Also available on Polygon, Arbitrum, Optimism.Returns the number of transactions sent from an address.
getTransactionReceipteth_getTransactionReceipt - Also available on Polygon.Returns the receipt of a transaction by transaction hash.
getTransactionReceiptseth_getTransactionReceiptsByBlock,
alchemy_getTransactionReceipts
An Alchemy Enhanced API that gets all transaction receipts for a given block by number or block hash. Supported on all networks for Ethereum, Polygon, and Arbitrum.
sendAllows sending a raw message to the Alchemy backend.
SDK NFTsNFT API
getNftsForOwnergetNFTsGets all NFTs currently owned by a given address.
getNftMetadatagetNFTMetadataGets the metadata associated with a given NFT.
getContractMetadatagetContractMetadataQueries NFT high-level collection/contract level information.
getNftsForContractgetNFTsForCollectionGets all NFTs for a given NFT contract.
getOwnersForNftgetOwnersForTokenGet the owner(s) for a token.
getOwnersForContractgetOwnersForCollectionGets all owners for a given NFT contract.
getSpamContractsgetSpamContractsReturns a list of all spam contracts marked by Alchemy.
isSpamContractisSpamContractReturns whether a contract is marked as spam or not by Alchemy.
refreshContractreingestContractTriggers metadata refresh for an entire NFT collection and refreshes stale metadata after a collection reveal/collection changes.
getFloorPricegetFloorPriceReturns the floor prices of a NFT collection by marketplace.
computeRaritycomputeRarityComputes the rarity of each attribute of an NFT.
SDK Transact
getTransactioneth_getTransactionByHash - Also available on Polygon, Arbitrum, Optimism, Astar.

getTransaction (Solana)
Returns the information about a transaction requested by transaction hash or number. In the response object, blockHash, blockNumber, and transactionIndex are null when the transaction is pending.
sendTransactioneth_sendRawTransaction - Also available on Polygon, Arbitrum, Optimism, Astar.

sendTransaction (Solana)
Creates a new message call transaction or a contract creation for signed transactions.
sendPrivateTransactioneth_sendPrivateTransactionSend a single private transaction through Flashbots. Private transactions are sent directly to miners and not included in the public mempool.
cancelPrivateTransactioneth_cancelPrivateTransactionRequest to cancel private transactions on Ethereum that are sent via eth_sendPrivateTransaction.
waitForTransactionReturns a promise which will not resolve until specified transaction hash is mined. If confirmations is 0, this method is non-blocking and if the transaction has not been mined returns null. Otherwise, this method will block until the transaction has confirmed blocks mined on top of the block in which it was mined.
SDK NotifyNotify API
getAllWebhooksteam-webhooksThis endpoint allows you to get all webhooks from every app on your team.
getAddresseswebhook-addressesPaginated endpoint to list all of the addresses a given Address Activity webhook is subscribed to.
getNftFilterswebhook-nft-filtersPaginated endpoint to list all of the NFT filter objects a given webhook is subscribed to.
updateWebhookupdate-webhookAllows you to update the state of an existing webhook. Input parameters is a webhook ID or object, followed by exactly one of the Update objects listed below.
createWebhookcreate-webhookThis endpoint allows you to create a webhook.
deleteWebhookdelete-webhookAllows you to delete a webhook.
ReadMe