List of all SDK Core methods.
Introduction
The Alchemy SDK Core Methods allow for interacting with the EVM network seamlessly.
Supported Methods
Method | Description |
---|---|
call | Returns the result of executing the transaction. |
estimateGas | Returns an estimate of the amount of gas that would be required to submit a transaction to the network. |
findContractDeployer | Finds the address that deployed the provided contract and the block number it was deployed in. |
getAssetTransfers | The Transfers API allows you to easily fetch historical transactions for any address across Ethereum and supported L2s including Polygon, Arbitrum, and Optimism. |
getBalance | Returns the balance of a given address as of the provided block. |
getBlock | Returns the block from the network based on the provided block number or hash. |
getBlockNumber | Returns the block number of the most recently mined block. |
getBlockWithTransactions | Returns the block from the network based on the provided block number or hash. |
getCode | Returns the contract code of the provided address at the block. If there is no contract deployed, the result is 0x. |
getFeeData | Returns the recommended fee data to use in a transaction. For an EIP-1559 transaction, the maxFeePerGas and maxPriorityFeePerGas should be used. |
getGasPrice | Returns the best guess of the current gas price to use in a transaction. |
getLogs | Returns an array of logs that match the provided filter. |
getStorageAt | Returns the value of the provided position at the provided address, at the provided block in Bytes32 format. |
getTokenBalances | Returns the ERC-20 token balances for a specific owner address. |
getTokenMetadata | Returns metadata for a given token contract address. |
getTransactionCount | Returns the number of transactions ever sent from the provided address, as of the provided block tag. |
getTransactionReceipt | Returns the transaction receipt for hash or null if the transaction has not been mined. |
getTransactionReceipts | Gets all transaction receipts for a given block by number or block hash. |
send | Allows sending a raw message to the Alchemy backend. |