Skip to main content

deposit_authorized RPC Method

Determines whether one account has the authorization to directly send payments to another account

Updated on
Oct 4, 2023

deposit_authorized RPC Method

Parameters

source_account
string
REQUIRED
The sender account
destination_account
string
REQUIRED
The recipient account
ledger_index
string
The ledger index of the ledger to use
ledger_hash
string
A 20-byte hex string for identifying the ledger version

Returns

result
object
An object which contains the following fields:
deposit_authorized
boolean
A boolean flag indicating whether the destination account is authorized to receive deposits from the source account
destination_account
string
The destination account for which the authorization was checked
ledger_hash
string
The hash of the ledger that was used for retrieving the account information
ledger_index
integer
The ledger index that was used for retrieving the account information
source_account
string
The source account for which the authorization was checked
status
string
The status of the request
validated
boolean
A boolean flag indicating whether the result has been validated or not
Request
1
curl https://docs-demo.xrp-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "deposit_authorized",
6
"params": [{
7
"source_account": "SOURCE_ACCOUNT_ADDRESS",
8
"destination_account": "rsUiUMpnrgxQp24dJYZDhmV4bE3aBtQyt8",
9
"ledger_index": "current"
10
}],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free