amaryfilo / connect-wallet

Connect Crypto Wallet by using CoinbaseWallet (WalletLink), KardiaChain, MetaMask browser extentions or mobile application and WalletConnect service by scanning Wallet Qr-code.
MIT License
19 stars 11 forks source link

How to find chain information for a custom network? #11

Open zydjohnHotmail opened 1 year ago

zydjohnHotmail commented 1 year ago

Hello: I see the repo, I want to know how to find network information for a custom network. I need ChainID for token BTCBAM, it has a BEP20 contract address at: 0x79abC799ae4B749C01e07a60c8687A49D128eA1C But this contract address seems not the native network, the native network is: BTCBAM, it has a blockchain explorer at: https://explorer.btcbam.com/ I have a wallet for this native token (not the BEP20 token), but I want to add this token to other wallet like: MetaMask.
But how do I know the ChainID to add this custom network and token? Please advise, Thanks,

amaryfilo commented 1 year ago

Hello, It looks like your token is on the BSC (Binance Smart Chain) network.

Add the main BSC network to the list of custom chains, and then add the ABI and address of your contract.

BSC chainID: 56.

Look for more detailed information on the token on its official website.

Maybe it will be useful for you https://github.com/amaryfilo/connect-wallet/pull/9

zydjohnHotmail commented 1 year ago

Hello: This is quite misleading. As I can tell you that the wallet address for receiving the native token is like this: BnHrhCK7FDg4579xv452JEKNTq4Hsv46L4 This address can not be a BEP20(BSC) address. But can you look at the native blockchain explorer: https://explorer.btcbam.com/ Maybe you find any useful information about the Chain ID#, if you have some kind of tools. By the way, you can find some data for the native token wallet from the above address at: https://explorer.btcbam.com/address/BnHrhCK7FDg4579xv452JEKNTq4Hsv46L4/

Please take a look again! Thanks