Ethereum JSON-RPC Methods — Common eth_* Calls Reference
The eth_* namespace covers the everyday reads and writes you make against an EVM node. This reference lists the common methods with a one-line summary of what each returns.
Block and chain state
eth_blockNumber — the number of the most recent block. eth_getBlockByNumber — a full block (with or without full transaction objects) by number or tag. eth_getBalance — the balance of an address in wei at a given block. eth_getCode — the deployed bytecode at an address (empty for plain accounts). eth_getStorageAt — the value stored at a specific storage slot of a contract.
Transactions
eth_getTransactionByHash — the transaction object for a given hash. eth_getTransactionReceipt — the receipt (status, gas used, logs, contract address) once a transaction is mined. eth_sendRawTransaction — submits a signed, serialized transaction and returns its hash.
Reads and simulation
eth_call — executes a message call against the current state without creating a transaction; used to read contract view functions. eth_estimateGas — returns an estimate of the gas a transaction would consume. eth_getLogs — returns event logs matching an address and topic filter over a block range.
Gas and pricing
eth_gasPrice — the current gas price the node suggests, in wei. Combine with eth_estimateGas to build a legacy transaction, or use the fee fields of EIP-1559 for base fee plus priority fee. All quantities are returned as hex-encoded strings.
Perguntas frequentes
What is the difference between eth_call and eth_sendRawTransaction?
eth_call simulates a call locally against current state and returns the result without changing anything or costing gas. eth_sendRawTransaction broadcasts a signed transaction that is included in a block and modifies state.
Why are JSON-RPC quantities hex-encoded?
The JSON-RPC spec encodes numeric quantities as 0x-prefixed hexadecimal strings to avoid precision loss for values larger than JavaScript can hold as a native number, such as wei balances.
Ferramentas relacionadas
Recarregue, pegue a chave e publique.
Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.
Obter chave de API