Ripple Data API vs Ripple RPC

Ripple Data API vs Ripple RPC

I need to write a program that monitors the transactions that sent to me. My approach is to periodically (like every 2 minutes) call the Ripple public api to get transactions for my account. But on the developer doc, I find two way to achieve this:

  1. Ripple Data API . example:

https://data.ripple.com/v2/accounts/rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn/transactions?type=Payment&result=tesSUCCESS&limit=3

  1. WebSocket/Json-RPC API. send to s2.ripple.com:443 with websocket or http. example:

{ "id": 1, "command": "account_tx",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"ledger_index_min": -1,
"ledger_index_max": -1,
"binary": false, "count": false,
"limit": 10, "forward": false }

I didn't check carefully, but they seem to have same response(with different format).

My question is :

  1. are they equivalent?

  2. which one should be preferred or which one is recommended by ripple?

https://ift.tt/2xmLs7p

Comments

Popular posts from this blog

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

Mistakenly sent BTC from my personal wallet back to one of the exchange wallet addresses that I had received BTC from before - help recovering!