Difference between revisions of "Cast rpc"

From wikieduonline
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  cast rpc optimism_syncStatus
+
  [[cast]] rpc [[web3_clientVersion]] [[--rpc-url]] <YOUR_RPC_URL>
 +
 
 +
 
 +
* <code> cast rpc web3_clientVersion --rpc-url http://localhost:8545 </code>
 +
 
 +
cast rpc [[optimism_syncStatus]]
 +
 
 +
== Errors ==
 +
[[cast]] rpc [[web3_clientVersion]] [[--rpc-url]] <YOUR_RPC_URL>
 +
Error:
 +
HTTP error [[403]] with body: {"jsonrpc":"2.0","error":{"code":-32601,"message":"rpc method is not whitelisted"},"id":0}
 +
 +
Context:
 +
- HTTP error 403 with body: {"jsonrpc":"2.0","error":{"code":-32601,"message":"[[rpc method is not whitelisted]]"},"id":0}
 +
 
 +
 
 +
 
 +
Error:
 +
server returned an error response: error code -32601: the method web3_clientVersion does not exist/is not available
  
 
== Related ==
 
== Related ==
 
* <code>[[curl]]</code>
 
* <code>[[curl]]</code>
 +
* <code>[[cast block-number --rpc-url]]</code>
 +
* [[geth --http.api]]
  
 
== See also ==
 
== See also ==
 +
* {{cast rpc}}
 
* {{cast}}
 
* {{cast}}
 +
* {{eth api}}
  
 
[[Category:Cast]]
 
[[Category:Cast]]

Latest revision as of 12:29, 12 September 2024

cast rpc web3_clientVersion --rpc-url <YOUR_RPC_URL>


cast rpc optimism_syncStatus

Errors[edit]

cast rpc web3_clientVersion --rpc-url <YOUR_RPC_URL>
Error: 
HTTP error 403 with body: {"jsonrpc":"2.0","error":{"code":-32601,"message":"rpc method is not whitelisted"},"id":0}

Context:
- HTTP error 403 with body: {"jsonrpc":"2.0","error":{"code":-32601,"message":"rpc method is not whitelisted"},"id":0}


Error:
server returned an error response: error code -32601: the method web3_clientVersion does not exist/is not available

Related[edit]

See also[edit]

Advertising: