January 2020
Intermediate to advanced
530 pages
11h 11m
English
Within the componentDidMount() method shown here, we will create and populate our accounts array. This will be used further by the WalletMain component to display all of the derived address from the merchant's HD wallet:
componentDidMount(){ let app = this; let accounts = this.state.accounts; let pathid = 100;
The pathid variable indicates the number of address indices we'll be deriving, essentially, the number of hierarchical addresses we'll be generating in the merchant's HD wallet. Hence, in the m/44'/60'/0'/0/<address index> expression ...
Read now
Unlock full access