format_node_block_diagnostic

Documentation for eth_defi.confirmation.format_node_block_diagnostic function.

format_node_block_diagnostic(web3, address)

Friendly per-node latest block + nonce table, for diagnosing lagging RPC nodes.

On a nonce mismatch this lets an operator immediately see whether one fallback node is behind the others (the usual cause of a false positive on an eventually-consistent multi-node RPC).

Parameters
  • web3 (web3.main.Web3) – Web3 connection.

  • address (str) – Hex address whose nonce is in question.

Returns

Multi-line, aligned diagnostic string.

Return type

str