Ethereum API
curl -X POST --data cast
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' localhost:8545
Examples
eth_call
eth_blockNumber
eth_getBlockByNumber
eth_getBalance
eth_gettransactionreceipt
eth_gasPrice
eth_sendRawTransaction
- eth_chainId
HEX String - an integer block number String "earliest" for the earliest/genesis block String "latest" - for the latest mined block String "safe" - for the latest safe head block String "finalized" - for the latest finalized block String "pending" - for the pending state/transactions
- Debug API:
debug_traceBlockByNumber
[1]
Related
See also
cast [ block | block-number | wallet | send | balance | call | chain-id | tx | --help ]
web3.eth
- Ethereum API, 8545,
eth_call, eth_blockNumber, eth_getBalance, eth_getBlockByNumber, eth_getTransactionReceipt, web3_clientVersion, eth_subscribe, /eth/v1/node/syncing
,cast
,eth_getProof
,eth_call, eth_chainId, eth_getBlockReceipts
, Eth Beacon Node API,eth_sendRawTransaction, eth_getLogs
,geth --http.api
- Crypto cloud providers, Ethereum API, dRPC, Infura, Alchemy, Chainstack (p2pify.com), QuickNode, Cloudflare web3, Tatum.io, Conduit.xyz, Cloudflare Ethereum Gateway, Attestant.io, Tenderly.co, RPCList
Advertising: