iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.41k stars 1.42k forks source link

Need help about setHdCoin(); value #617

Closed expatjedi closed 1 year ago

expatjedi commented 1 year ago

Hello. I'm trying to add a new coin and i have all the information except one thing.

What's the setHdCoin(); value? How do i find this value in coin's source code?

Relevant code is mentioned in src/js/index.js file. For example

{ name: "XXX - xxxcoin", onSelect: function() { network = libs.bitcoin.networks.xxxcoin; setHdCoin(1); }, },

Thank you very much for the help.

iancoleman commented 1 year ago

The value for setHdCoin comes from the BIP44 registered coin types: https://github.com/satoshilabs/slips/blob/master/slip-0044.md

It sets the 'coin' value for BIP44/49/84 tabs