Go theorytheory 0/50 · 0%
Web · medium

28. HTTP Clients and JSON-RPC

Calling blockchain nodes from Go.

Reuse a configured http.Client with timeouts rather than the default. Ethereum JSON-RPC calls post a method, params, id envelope; results arrive as hex strings that need decoding into big.Int. Batch requests and set sensible retry and backoff policy.

Check your understanding

  1. 1. Ethereum RPC numbers arrive as…

  2. 2. Clients should always set…