LogoLogo
  • What is QPQ?
  • Quickstart
    • Creating your network and node
    • Setup Metamask and get Tokens
    • Create a Metamask account
    • Send tokens between accounts
  • Smart Contracts
    • Ethereum API
      • eth_blockNumber
      • eth_getBlockByHash
      • eth_getBlockByNumber
      • eth_getTransactionByHash
      • eth_getTransactionCount
      • eth_getTransactionReceipt
      • eth_sendRawTransaction
      • eth_getBalance
      • eth_getCode
      • eth_call
      • eth_getLogs
      • eth_estimateGas
      • eth_chainId
      • net_version
    • Deploy and interact with a smart contract
      • Hardhat
        • Interaction - Greeter
      • Remix IDE
  • Tutorials
    • NFT deploy
  • Bridge
    • Setup the bridge
  • Resources
    • 1DLT Frequently asked Questions (FAQ)
    • Support
Powered by GitBook
On this page
  • What is the Ethereum API?
  • Getting Blocks
  • Reading Transactions
  • Writing Transactions
  • Account Information
  • EVM/Smart Contract Execution
  • Event Logs
  • Chain Information
  1. Smart Contracts

Ethereum API

This page serves as an Ethereum API documentation index and lists the available Ethereum JSON-RPC methods that Alchemy supports.

PreviousSend tokens between accountsNexteth_blockNumber

Last updated 2 years ago

What is the Ethereum API?

The Ethereum API allows applications to connect to an Ethereum node that is part of the Ethereum blockchain. Developers can interact with on-chain data and send different types of transactions to the network by utilising the endpoints provided by the API. The API follows a JSON-RPC standard. JSON-RPC is a stateless, lightweight, remote procedure call (RPC) protocol that is commonly used when interacting with Ethereum.

Getting Blocks

To retrieve information from a particular block in the blockchain.

Reading Transactions

To retrieve information on the state data for addresses, regardless of whether it is a user or a smart contract.

Writing Transactions

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.

EVM/Smart Contract Execution

Allows developers to read data from the blockchain which includes executing smart contracts. However, no data is published to the Ethereum network.

Event Logs

Returns logs, which are records that provide context on specific events within a smart contract, like a token transfer or a change of ownership.

Chain Information

Returns information on the Ethereum network and internal settings.

eth_blockNumber
eth_getBlockByHash
eth_getBlockByNumber
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_sendRawTransaction
eth_getBalance
eth_getCode
eth_call
eth_getLogs
eth_estimateGas
eth_chainId
net_version