List of all Astar API endpoints
Astar API Endpoints by use case
- Getting Blocks
- Reading Transactions
- Writing Transactions & EVM Execution
- Account Information
- Event Logs
- Chain Information
- Getting Uncles
- Gas Estimation
- Web3
- Real-time Events
Available Enhanced APIs
Getting Blocks
Retrieves information from a particular block in the blockchain.
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_blocknumber
- eth_getBlockByNumber
- eth_getBlockByHash
Reading Transactions
Retrieves information on the state data for addresses regardless of whether it is a user or a smart contract.
- eth_getTransactionByHash
- eth_getTransactionReceipt
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
Writing Transactions & EVM Execution
Allows developers to both send ETH from one address to another, write data on-chain, and interact with smart contracts.
Account Information
Returns information regarding an address's stored on-chain data.
Event Logs
Returns logs which are records that denote/provide context on specific events within a smart contract, like a token transfer or a change of ownership, for example.
- eth_getLogs
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_newBlockFilter
- eth_getFilterChanges
- eth_getFilterLogs
- eth_uninstallFilter
Chain Information
Returns information on the Ethereum network and internal settings.
Getting Uncles
Returns information on uncle blocks which are network rejected blocks and replaced by a canonical block instead.
Gas Estimation
Web3
Returns Ethereum network configuration information.
Real-time Events
Introduces WebSocket-based requests/responses which leverage a network connection allowing developers to listen for changes continuously without the need for HTTP polling.
Available Enhanced APIs