An open API service indexing awesome lists of open source software.

https://github.com/web3w/hd-address-example

An example of hd Wallet
https://github.com/web3w/hd-address-example

chinese hd-wallet mnemonic trx

Last synced: 4 days ago
JSON representation

An example of hd Wallet

Awesome Lists containing this project

README

          

# hd-address-example
An example of hd Wallet

[![NPM version](https://img.shields.io/npm/v/hd-address?style=flat-square)](https://www.npmjs.com/package/hd-address)

### Reference
[HD Wallet (bip32)](https://github.com/bitcoin/bips/blob/master/bip-0032/derivation.png)
[Mnemonic wordlists reference (bip39)](https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md)
[HD Wallet coin type list (bip44)]( https://github.com/satoshilabs/slips/blob/master/slip-0044.md)
m / purpose' / coin_type' / account' / change / address_index
```js
/ address 0
coinType 0(btc) -- account 0 -- change 0
/ \ address 1
root -- BIP44
\
coinType 60(eth) -- account 0 -- change 1 -- address 0

```

### Initialization
1. **Mnemonic Initialization** [example](init/mnemonic.js)
2. **Seed Initialization** [example](init/seed.js)
3. **Base58 Initialization** [example](init/base58.js)

### Basic Usage
1. **Get Mnemonic** [example](mnemonic_safe/mnemonic.js)
2. **Get BTC ETH TRX address** [example](init/mnemonic.js)
3. **Get keypair** [get keypair example](./address/address.keypair.js)

### Advanced Usage
1. **EOS extension** [example](init/extension/index.js)
2. **Get address using chain code: example** [example](chaincode/chaincode.js)

### CLI
1. **Creating a new HD wallet form mnemonic,seed,base58:** [example](cli/create.wallet.js)
2. **Deriving keys at a HD path** [example](cli/getaddress.js)
2. **Batch create address** [example](cli/batch.generate.address.js)

### Other
1. **TRX address using private key or public key** [example](address/trx.address.js)

### Donor Address
```js
"BTC": "1HthGRdzxunKAiMSazDdL8PZhE4qWpeBNK",
"BCH": "12owPGh3cXLk8HevCEx5fZAMPqZPBgvgmX",
"LTC": "LchXCPCtYTKUvksjf5RvkZhCwvYQrYewaa",
"ETH": "0x4E04823FDF08E862201a4cfA595dc1Ec72AdF3Ab",
"TRX": "TZFH9KReZpsWZZ9Q2bVyXGQtmvVL3PV8gE",
```