A simplified RESTful API for running a the Ripple Network.
This API is still in beta. Please open issues for any problems you encounter.
- Users
- External Accounts
- Deposits
- Withdrawals
- Balances
- Ripple Addresses
- Ripple Transactions
- Gateway Settings
Get the most recent notification for a particular account. See next route details for response format.
Get the next notification after the given :prev_tx_hash
for a particular accounts.
Response:
{
"success": true,
"notification": {
"address": "rKXCummUHnenhYudNb9UoJ4mGBR75vFcgz",
"type": "payment",
"tx_direction": "outgoing",
"tx_state": "confirmed",
"tx_result": "tesSUCCESS",
"tx_ledger": 4696959,
"tx_hash": "55BA3440B1AAFFB64E51F497EFDF2022C90EDB171BBD979F04685904E38A89B7",
"tx_timestamp": 1391025100000,
"tx_url": "http://ripple-simple.herokuapp.com/api/v1/addresses/rKXCummUHnenhYudNb9UoJ4mGBR75vFcgz/payments/55BA3440B1AAFFB64E51F497EFDF2022C90EDB171BBD979F04685904E38A89B7",
"confirmation_token": "55BA3440B1AAFFB64E51F497EFDF2022C90EDB171BBD979F04685904E38A89B7"
}
}
Or if there are no new notifications:
(Note the "type": "none"
and "tx_state": "empty"
or "tx_state": "pending"
)
{
"success": true,
"notification": {
"address": "rKXCummUHnenhYudNb9UoJ4mGBR75vFcgz",
"type": "none",
"tx_direction": "",
"tx_state": "empty", // or "pending" if still waiting for outgoing transactions to clear
"tx_result": "",
"tx_ledger": "",
"tx_hash": "",
"tx_timestamp": ,
"tx_url": "",
"confirmation_token": ""
}
}