Difference between revisions of "Ethereum API"
Jump to navigation
Jump to search
↑ https://www.quicknode.com/docs/ethereum/debug_traceBlockByNumber
(8 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
[[curl -X POST --data]] | [[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 == | == Examples == | ||
+ | * <code>[[web3_clientVersion]]</code> | ||
+ | * <code>[[eth_chainId]]</code> | ||
* <code>[[eth_call]]</code> | * <code>[[eth_call]]</code> | ||
* <code>[[eth_blockNumber]]</code> | * <code>[[eth_blockNumber]]</code> | ||
Line 13: | Line 20: | ||
* <code>[[eth_gasPrice]]</code> | * <code>[[eth_gasPrice]]</code> | ||
* <code>[[eth_sendRawTransaction]]</code> | * <code>[[eth_sendRawTransaction]]</code> | ||
+ | |||
HEX String - an integer block number | HEX String - an integer block number |
Latest revision as of 13:11, 27 October 2024
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: