Difference between revisions of "Ethereum API"

From wikieduonline
Jump to navigation Jump to search
 
(30 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 ==
 
* {{cast}}
 
* {{cast}}
 
* {{web3.eth}}
 
* {{web3.eth}}
* {{Ethereum}}
+
* {{Ethereum API}}
 
* {{Crypto cloud providers}}
 
* {{Crypto cloud providers}}
  
 
[[Category:Ethereum]]
 
[[Category:Ethereum]]

Latest revision as of 13:11, 27 October 2024

wikipedia: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[edit]


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


Related[edit]

See also[edit]

  • https://www.quicknode.com/docs/ethereum/debug_traceBlockByNumber
  • Advertising: