getCurrentAddress method

String getCurrentAddress ([dynamic legacyFormat = true ])

Returns address at the current position

Implementation

String getCurrentAddress([legacyFormat = true]) {
  if (legacyFormat) {
    return accountNode.derive(currentChild).toLegacyAddress();
  } else {
    return accountNode.derive(currentChild).toCashAddress();
  }
}