keysend static method

dynamic keysend({
  1. required KeysendArgs keysendArgs,
})

With keysend it request the user to send a keysend payment. This payment only needs a destination public key and amount.

try {
  await FlutterWebln.keysend(keysendArgs: keysendArgs)
      .then(allowInterop((result) {
    print('[+] KeysendPaymentResponse: ${weblnDecode(result)}');
  }));
} catch (error) {
  print('[!] Error in keysend method is $error');
}

Implementation

static keysend({required KeysendArgs keysendArgs}) =>
    WeblnApi.keysend(keysendArgs);