Free web tools are coming soon.
USDT checker Soon Is a USDT address frozen or blacklisted?
AML check Soon Risk band and sanctions for any address
Tron energy calculator Soon What a USDT TRC20 transfer costs
Broadcast a transaction Soon Push a signed transaction to the network

XRP Ledger API

The Crypto APIs XRP Ledger API, part of the Blockchain API, lets you read XRP balances, transactions and ledgers and send XRP without running a node. One API key covers mainnet and testnet. Webhooks tell your server when a payment confirms, and we never hold your private keys.

Capabilities

What can you do with the XRP Ledger API?

Read balances and history

Confirmed balances and transactions for any XRP Ledger address, and blocks.

Work with xPubs

Derive addresses and sync balances from an extended public key (xPub).

Estimate fees

Fee recommendations for slow, standard and fast confirmation on XRP Ledger.

Prepare and broadcast

We build the unsigned transaction. You sign it, and we send it to the network.

Get webhooks

We call your URL when coins arrive at an address and when the transaction confirms.

Same shape on 35+ networks

Swap xrp for another chain in the path, such as Solana or Tron.

Quick start

How do I get the latest XRP Ledger block?

Send one GET request with your API key; the same request works on testnet when you replace mainnet with testnet in the path.

  • Base URL https://rest.cryptoapis.io
  • Auth: the X-API-Key header
  • JSON responses, same shape on every chain
curl https://rest.cryptoapis.io/blocks/xrp/mainnet/latest/details \
  -H "X-API-Key: YOUR_API_KEY"
200 OKExample response, excerpt
{
  "height": 15975748,
  "hash": "f9b304b7933ef298142fdd58ad2dec414a5267dcbbd8a4fe9fc2c0a5f9dde050",
  "transactionsCount": 1,
  "timestamp": 1616430182
}
Endpoints

Which XRP Ledger endpoints are available?

The main calls. Every path takes the network: mainnet or testnet.

API reference
What it does
Method and path
Reference
Latest block
GET/blocks/xrp/mainnet/latest/details
Block by height
GET/blocks/xrp/mainnet/height/{blockHeight}/details
Address balance
GET/addresses-latest/xrp/mainnet/{address}/balance
Transactions of an address
GET/addresses-latest/xrp/mainnet/{address}/transactions
Transaction by hash
GET/transactions/xrp/mainnet/{transactionHash}
Fee recommendations
GET/blockchain-fees/xrp/mainnet/mempool
Derive addresses from an xPub
GET/utils/xrp/mainnet/xpubs/{extendedPublicKey}/derive-addresses
Prepare an unsigned transaction
POST/prepare-transactions/xrp/mainnet/native-coins
Broadcast a signed transaction
POST/broadcast-transactions/xrp/mainnet
Webhook on a confirmed payment
POST/blockchain-events/xrp/mainnet/address-coins-transactions-confirmed
Non-custodial

How do I send a XRP Ledger transaction without giving up my keys?

Crypto APIs never holds your private keys. You keep signing; we do the rest.

  1. Step 1 Derive Get XRP Ledger addresses from your xPub.
  2. Step 2 Prepare We build the unsigned transaction with the fee set.
  3. Step 3 Sign locally You sign on your own servers. Keys never leave.
  4. Step 4 Broadcast We push the signed transaction to the XRP Ledger network.
  5. Step 5 Confirm A webhook tells you when it confirms.
API or RPC

XRP Ledger API vs XRP Ledger RPC: which do I need?

Most apps start with the API. Use RPC when you need a method the node exposes directly.

XRP Ledger API
XRP Ledger RPC
Best for
Apps that need balances, history and webhooks
Raw node calls such as server_info
Request shape
REST + JSON, same on 35+ networks
The node's own JSON-RPC
Indexed data (address history)
Yes
No, only what the node exposes
Product
Blockchain API
NodeGrid RPC Coming soon
Coming soon

XRP Ledger RPC

Need raw node calls (JSON-RPC)? NodeGrid RPC will give you one endpoint with automatic failover between partner providers. Until then, JSON-RPC access is part of the Blockchain API.

Explore NodeGrid RPC
Coming soon

Check a XRP Ledger address for AML risk

A free risk band and sanctions check for any XRP Ledger address is coming soon. Today, screen addresses with the AML API.

Coming soon
About XRP Ledger

Transferring assets with XRP

XRP is a digital payment network created in 2012 and it’s cryptocurrency is called XRP. Multiple major banks worldwide have adopted the XRP payment system. Is available over Mainnet and Testnet networks.

XRP is like a bridge to other currencies. The XRP payment protocol is used not only for XRP transactions but also the transfer of money in any form, fiat or crypto. Any currency can be exchanged for another one. Unlike Bitcoin, XRP has lower processing times and lower costs.

FAQ

XRP Ledger API questions

Is there a free XRP Ledger API?

You can try it free for 14 days. The Blockchain API free trial covers XRP Ledger and every feature, with no card. It ends after 14 days or when its credits run out; after that, calls need a subscription, listed on the pricing page.

How do I get the balance of a XRP Ledger address?

Call the address balance endpoint with the account address; it returns the confirmed XRP balance. Part of every XRP account is held back as the base reserve.

How do I broadcast a XRP Ledger transaction?

Sign the transaction on your own server, then send the signed raw transaction to the broadcast endpoint, authenticated with your API key, and Crypto APIs pushes it to the XRP Ledger network and returns the transaction ID. We can prepare the unsigned transaction for you first.

Do you support XRP Ledger testnet?

Yes. Every XRP Ledger endpoint works on mainnet and testnet. Change mainnet to testnet in the path; the same API key works on both.

What makes XRP Ledger different to work with?

It is an account-model ledger with a reserve requirement. An XRP account must hold a base reserve to exist, and payments to an exchange usually need a destination tag — the field most often missing when a deposit goes unattributed.

How do I know when a XRP Ledger transaction is confirmed?

Create a webhook subscription for the address. Crypto APIs calls your URL when a transaction to or from it confirms on XRP Ledger.

Start building on XRP Ledger today

14-day free trial, mainnet included. No card needed.