Ethereum API Overview
In order to interact with the Ethereum blockchain, dapps need to use an API to read and write to an Ethereum node and execute smart contracts.
Coinbase Node makes it easy to use the Ethereum API with Instant API Access to shared Ethereum nodes, hosted and managed by Coinbase Cloud.
The native Ethereum API uses the JSON-RPC protocol. JSON-RPC is a remote procedure call protocol encoded in JSON which is common throughout the Ethereum ecosystem. JSON-RPC is ideal for distributed ledger technologies, like Ethereum, because it is stateless, lightweight and can be used with any communication protocol, like TCP or WebSockets, although HTTP is still standard.
Supported Methods
Coinbase Node supports the following Ethereum API methods:
Getting blocks
Get information about particular blocks in the blockchain.
eth_blockNumber
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
Getting and sending transactions
Get information about blockchain transactions and send transactions.
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_sendRawTransaction
Getting account information
Get information about an address's on-chain data.
Getting Ethereum chain information and network configuration
Get information about the Ethereum network and its configuration.
eth_chainId
eth_estimateGas
eth_feeHistory
eth_gasPrice
eth_protocolVersion
net_version
web3_clientVersion
Handling smart contracts
Execute smart contracts and get information about what smart contracts were executed.
Getting information about Uncle blocks
Uncle blocks are blocks that were mined at nearly the same time as the "canonical" block that gets added to the blockchain. See the Ethereum glossary for more information.
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
Coinbase Node doesn't currently support certain Ethereum API methods, like the subscription and filter methods.
To learn more about the native Ethereum API, see the Ethereum JSON-RPC documentation.