getEthereumAddress method
- {int index = 0}
override
Retrieves the Ethereum address of an account from the HD wallet.
index
: The index of the account.
Returns the Ethereum address.
Implementation
@override
EthereumAddress getEthereumAddress({int index = 0}) {
bip44.ExtendedPrivateKey hdKey = _getHdKey(index);
final privKey = _deriveEthPrivKey(hdKey.privateKeyHex());
return privKey.address;
}