send method

Future<AccountBlockTemplate> send(
  1. AccountBlockTemplate transaction, {
  2. KeyPair? currentKeyPair,
  3. void generatingPowCallback(
    1. PowStatus
    )?,
  4. dynamic waitForRequiredPlasma = false,
})

Implementation

Future<AccountBlockTemplate> send(AccountBlockTemplate transaction,
    {KeyPair? currentKeyPair, void Function(PowStatus)? generatingPowCallback, waitForRequiredPlasma = false}) async {
  currentKeyPair ??= defaultKeyPair;
  if (currentKeyPair == null) throw noKeyPairSelectedException;
  return BlockUtils.send(transaction, currentKeyPair, generatingPowCallback: generatingPowCallback, waitForRequiredPlasma: waitForRequiredPlasma);
}