depositAutorize method
The deposit_authorized command indicates whether one account is authorized to send payments directly to another. See Deposit Authorization for information on how to require authorization to deliver money to your account.
Implementation
Future<Map<String, dynamic>> depositAutorize(
String sourceAccount,
BigInt destinationAmount, {
String? ledgerHash,
XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
}) async {
final Map<String, dynamic> configParams = {};
_createRpcConfig(configParams, "source_account", sourceAccount);
_createRpcConfig(
configParams, "destination_account", destinationAmount.toString());
_createRpcConfig(configParams, "ledger_index", ledgerIndex?.value);
_createRpcConfig(configParams, "ledger_hash", ledgerHash);
final response = await makeCustomCall<Map<String, dynamic>>(
"deposit_authorized", [configParams]);
return response;
}