简体   繁体   中英

Chain ID for connecting AWS private Ethereum Blockchain with Metamask

Can you please help me with this, I have created a private Ethereum blockchain in AWS using this template: https://aws.amazon.com/blockchain/templates/getting-started/

I wanted to connect this blockchain with metamask using EthJsonRPC url, what will be the chain id for connecting this metamask?

If you click again on the CloudFormation template link, you will see that the default Chain ID value is 1234.

But in the case you changed that value and can't recall, you can easily double check the Chain Id, by requesting it via JSON-RPC.

curl -X POST -H 'Content-Type: application/json' \ 
-d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}' \
<YOUR-INSTANCE-URL>

Also, make sure that the instance is reachable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM