Skip to main content

XRP Ledger API Documentation

Overview​

Bitquery's XRP Ledger (Ripple) API gives you indexed XRPL data without running a node: transfers and payments by address, account balances, transaction lookup, money-flow tracing and bulk history. History goes back to 2013, and the ledger settles 300,000+ payments a day.

Endpoint

XRP Ledger GraphQL queries are served at https://graphql.bitquery.io. You need an API token: how to generate one.

Which surface serves what​

You needUseWhere
Transfers and payments by addressGraphQL APIXRP Transfers API, XRP Payments API
Account balances and balance historyGraphQL APIXRP Balances API
Transaction lookup by hashGraphQL APIQuery below
Money-flow tracing in plain EnglishBitquery MCPTracing MCP
Bulk history as Parquet filesData StoreRipple (XRP Ledger) Data

Quick start​

Latest payments to or from an XRP address​

Returns the 10 newest payments where the address is sender or receiver. direction: "payment" drops fee and offer rows.

{
ripple(network: ripple) {
transfers(
date: {between: ["2026-11-20", "2026-11-23"]}
any: [
{sender: {is: "rw2ciyaNshpHe7bCHo4bRWq6pqqynnWKQg"}}
{receiver: {is: "rw2ciyaNshpHe7bCHo4bRWq6pqqynnWKQg"}}
]
direction: {is: "payment"}
options: {desc: "block", limit: 10}
) {
block
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
sender {
address
annotation
}
receiver {
address
annotation
}
amountFrom
currencyFrom {
symbol
address
}
amountTo
currencyTo {
symbol
address
}
direction
transaction {
hash
type
}
}
}
}

Current XRP and token balance of an address​

{
ripple(network: ripple) {
address(address: {is: "rw2ciyaNshpHe7bCHo4bRWq6pqqynnWKQg"}) {
address
annotation
balance
balance_usd: balance(in: USD)
tokenBalances {
currency
account
balance
}
}
}
}

Look up an XRP transaction by hash​

Returns the transaction status and fee, plus every value movement inside it. Keep the date filter on the day of the transaction so the lookup stays fast.

{
ripple(network: ripple) {
transactions(
date: {is: "2026-11-23"}
hash: {is: "71c69564e7923112fdf14b62c8c065fe55714d71d4e1278db4524940caa3dd9a"}
) {
block
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
hash
type
sender {
address
}
success
result
fee
sequence
sourceTag
memos
}
transfers(
date: {is: "2026-11-23"}
transactionHash: {is: "71c69564e7923112fdf14b62c8c065fe55714d71d4e1278db4524940caa3dd9a"}
) {
direction
sender {
address
}
receiver {
address
}
amountFrom
currencyFrom {
symbol
}
amountTo
currencyTo {
symbol
}
}
}
}

Trace XRP money flow with the MCP​

Connect the Bitquery MCP server to Claude, Cursor or ChatGPT and ask in plain English. The XRP Ledger tools cover incoming and outgoing transfers, top counterparties, next-hop and multi-hop tracing, and every record of a transaction.

"Where did rw2ciyaNshpHe7bCHo4bRWq6pqqynnWKQg send its XRP in the last 7 days? Show the top receivers and flag exchange deposit accounts."

Tracing follows payments between accounts. Destination tags are returned, so deposits into a shared exchange account can be told apart.

Bulk exports​

For backfills and warehouse loads, the Ripple (XRP Ledger) Data Store datasets ship transfers, payments, balances and transactions as Parquet files for S3, Snowflake and BigQuery.

API reference​

Pitfalls​

  • Read the delivered amount, not the requested amount. A partial payment can deliver far less than amount; use deliveredAmount on payments.
  • A currency code is not a token. Many issuers use the same code, so filter on the issuer as well.
  • Keep a date filter on every query. The ledger has history since 2013 and unbounded queries are slow.
Build with Bitquery

Ready to run this in production?

Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.