20 Compute Units.
Reference: Here
Parameters
source_account(string, required) The sender of a possible payment.destination_account(string, required) The recipient of a possible payment.ledger_hash(string, optional) The unique hash of the ledger version to use.ledger_index(number or string, optional) The ledger index of the ledger to use, or a shortcut string such asvalidated,closedorcurrent.credentials(array, optional) A set of credential ledger entry IDs to take into account when checking whether the sender can send funds to the destination.
Returns
deposit_authorized(boolean) Whether the source account is authorized to send payments directly to the destination account.trueif the destination does not require deposit authorization or has preauthorized the source.source_account(string) The source account specified in the request.destination_account(string) The destination account specified in the request.credentials(array) The credentials specified in the request, if any.ledger_hash(string) The identifying hash of the ledger used to generate this response.ledger_index(number) The ledger index of the ledger version used.ledger_current_index(number) The ledger index of the current in-progress ledger, if used.validated(boolean) Iftrue, the information comes from a validated ledger version.
{"id":1,"command":"deposit_authorized","source_account":"rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De","destination_account":"rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De","ledger_index":"validated"} to wss://mainnet.xrpl.validationcloud.io/v1/<YOUR_API_KEY_HERE>.