getWalletOptions method

Future<SignerOptions> getWalletOptions()

Implementation

Future<SignerOptions> getWalletOptions() async {
  var signer = SignerOptions()
    ..signMode = SignMode.SIGN_MODE_DIRECT
    ..chainId = TerraClientConfiguration.lcdConfig!.chainID
    ..address = accAddress
    ..accountNumber = (await getAccountNumber()).toDouble()
    ..sequenceNumber = (await getSequence()).toDouble();

  return signer;
}