Difference between revisions of "Ethereum API"
Jump to navigation
Jump to search
↑ https://www.quicknode.com/docs/ethereum/debug_traceBlockByNumber
(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[wikipedia:Ethereum API]] | [[wikipedia:Ethereum API]] | ||
* https://github.com/ethereum/execution-apis | * https://github.com/ethereum/execution-apis | ||
+ | * https://www.quicknode.com/docs/ethereum/ | ||
+ | |||
+ | [[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 == | ||
+ | * <code>[[web3_clientVersion]]</code> | ||
+ | * <code>[[eth_chainId]]</code> | ||
+ | * <code>[[eth_call]]</code> | ||
+ | * <code>[[eth_blockNumber]]</code> | ||
+ | * <code>[[eth_getBlockByNumber]]</code> | ||
+ | * <code>[[eth_getBalance]]</code> | ||
+ | * <code>[[eth_gettransactionreceipt]]</code> | ||
+ | * <code>[[eth_gasPrice]]</code> | ||
+ | * <code>[[eth_sendRawTransaction]]</code> | ||
+ | |||
+ | |||
+ | 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: <code>[[debug_traceBlockByNumber]]</code> <ref>https://www.quicknode.com/docs/ethereum/debug_traceBlockByNumber</ref> | ||
== Related == | == Related == | ||
Line 6: | Line 36: | ||
* [[Ethereum RPC calls]] | * [[Ethereum RPC calls]] | ||
* [[Besu]] [[JSON-RPC]] API methods: <code>[[eth]], [[net]], [[web3]], [[debug]], and [[miner]]</code> | * [[Besu]] [[JSON-RPC]] API methods: <code>[[eth]], [[net]], [[web3]], [[debug]], and [[miner]]</code> | ||
− | * [[8545]] | + | * <code>[[geth --http.api]]</code>, [[admin_addPeer]] |
+ | * <code>[[8545]]</code> | ||
+ | * <code>[[cast block]]</code> | ||
+ | * [[curl --compressed]] | ||
+ | * [[Ethereum tasks]] | ||
+ | * [[cast]] | ||
== See also == | == See also == |
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: