wallet_get_chain_id
Retrieve the chain ID of the Ethereum or EVM-compatible blockchain a wallet is connected to, enabling accurate transaction and contract interactions.
Instructions
Get the chain ID the wallet is connected to
Input Schema
Name | Required | Description | Default |
---|---|---|---|
wallet | No | The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set. |