Skip to content

Commit

Permalink
Updated Chainid [Fixes #1081] (#1084)
Browse files Browse the repository at this point in the history
* Update Chainid [ Issue #1081 ]

Updated "Send Transaction How To".
Updated the Chain ID part in accordance to the deprecation plans.

* Update wallet/how-to/send-transactions.md

Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>

---------

Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
  • Loading branch information
SloTyper and alexandratran authored Jan 9, 2024
1 parent 8a097d7 commit 586eaad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wallet/how-to/send-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ information on how the data is encoded.
MetaMask ignores this field.
:::

The chain ID is derived from the user's current selected network at `window.ethereum.networkVersion`.
The chain ID is derived from the user's current selected network.
Use [`eth_chainId`](/wallet/reference/eth_chainid) to get the user's chain ID.
If you need the network version, use [`net_version`](https://ethereum.org/en/developers/docs/apis/json-rpc/#net_version).

In the future, MetaMask might allow connecting to multiple networks at the same time, at which point
this parameter will become important, so it might be useful to be in the habit of including it now.

0 comments on commit 586eaad

Please sign in to comment.