xrp

XRP (XRP)

Method: POST deposit_authorized

dropdown

POST deposit_authorized

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.

Parameters

source_account - String - Address

The sender of a possible payment.

destination_account - String - Address

The recipient of a possible payment.

ledger_hash - String

(Optional) A 20-byte hex string for the ledger version to use.

ledger_index - String or Unsigned Integer

(Optional) The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically.

Request

curl --location --request POST 'https://xrp.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "deposit_authorized",
"params": [{"source_account": "rEhxGqkqPPSxQ3P25J66ft5TwpzV14k2de", "destination_account": "rsUiUMpnrgxQp24dJYZDhmV4bE3aBtQyt8"}],
"id": "getblock.io"}'


Response

{
    "result": {
        "error": "srcActNotFound",
        "error_code": 67,
        "error_message": "Source account not found.",
        "ledger_current_index": 63632814,
        "request": {
            "command": "deposit_authorized",
            "destination_account": "rsUiUMpnrgxQp24dJYZDhmV4bE3aBtQyt8",
            "source_account": "rEhxGqkqPPSxQ3P25J66ft5TwpzV14k2de"
        },
        "status": "error",
        "validated": false
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable API connection to full nodes from many leading blockchains.

Subscribe

Email is invalid

2019 - 2021 GetBlock