Ethereum API
(Redirected from JSON-RPC API)
Jump to navigation
Jump to search
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[edit]
web3_clientVersion
eth_chainId
eth_call
eth_blockNumber
eth_getBlockByNumber
eth_getBalance
eth_gettransactionreceipt
eth_gasPrice
eth_sendRawTransaction
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[edit]
- Cloudflare web3: Cloudflare Ethereum Gateway
- Ethereum RPC calls
- Besu JSON-RPC API methods:
eth, net, web3, debug, and miner
geth --http.api
, admin_addPeer8545
cast block
- curl --compressed
- Ethereum tasks
- cast
See also[edit]
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: