In the API, add the utility function AddressFromMnemonic which creates an in-memory keystore, creates the key from the mnemonic and returns the address. The following example gets the test_1 address from the mnemonic. As expected, it prints address g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5.
In the API, add the utility function
AddressFromMnemonic
which creates an in-memory keystore, creates the key from the mnemonic and returns the address. The following example gets the test_1 address from the mnemonic. As expected, it printsaddress g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5
.