Verify Chain Id Before Signing

Use when signing a transaction or typed message, or after switching RPC endpoints. Reads chainId from the endpoint, compares it to the expected constant, and refuses to sign against a mismatched or lying RPC.

jiayaoqijia Updated 81 repo stars

File contents

jiayaoqijia/cryptoskill commit dbf2efad4b

Frequently asked questions

npx get-skill add jiayaoqijia/verify-chain-id-before-signing