Back to Guides

XRPL API Guide

Everything you need to query the XRP Ledger. Full history from ledger 32,570 to present. WebSocket, JSON-RPC, accounts, transactions, NFTs, DEX, and AMM from one endpoint.

Getting Started

Sign up for a free account to get your API endpoint. Replace YOUR_TOKEN in the URLs below with your token. No credit card required.

Get Free API Key Full API Docs

Endpoints

XRPL Stream provides full-history access across mainnet, testnet, and devnet.

ProtocolURLUse
POSThttps://s1.xrpl.stream/e/TOKENJSON-RPC - all XRPL methods
WebSocketwss://s1.xrpl.stream/e/TOKENSubscriptions and streaming
Testnethttps://s1.xrpl.stream/testnetXRPL Testnet
Devnethttps://s1.xrpl.stream/devnetXRPL Devnet

Account Methods

Query any XRPL account state or full transaction history back to genesis.

MethodReturns
account_infoBalance, sequence, flags, settings
account_linesTrust lines and token balances
account_txFull transaction history from genesis
account_offersActive DEX offers
account_nftsOwned NFTs (XLS-20)
account_objectsAll ledger objects (offers, checks, escrows)
account_currenciesSendable and receivable currencies
account_channelsPayment channels
gateway_balancesIssued currency totals for issuers
Full History - account_tx returns transactions back to ledger 32,570 (January 2013). No gaps, no truncation.

Transaction Methods

Look up transactions, submit new ones, and check fees.

MethodReturns
txLook up any transaction by hash
submitSubmit a signed transaction
submit_multisignedSubmit a multi-signed transaction
transaction_entryTransaction from a specific ledger
feeCurrent transaction fee

NFT Methods

Full XLS-20 NFT support. Query, mint, transfer, and trade NFTs on the XRP Ledger.

MethodReturns
nft_infoNFT metadata, owner, issuer, URI
nft_buy_offersActive buy offers for an NFT
nft_sell_offersActive sell offers for an NFT
nfts_by_issuerAll NFTs minted by an issuer

DEX and Order Book

The XRP Ledger has a built-in decentralized exchange. Query order books, find payment paths, and check AMM pools.

MethodReturns
book_offersOrder book for any currency pair
ripple_path_findFind payment paths across the DEX
amm_infoAMM pool state, reserves, LP tokens
deposit_authorizedCheck if deposits are allowed

WebSocket Subscriptions

Stream real-time data over WebSocket. Subscribe to ledger closes, specific accounts, order books, or transaction streams. Connect once and receive updates as they happen - ideal for wallets, trading interfaces, and live dashboards.

Ledger Methods

Query any ledger from genesis to present.

MethodReturns
ledgerLedger header, transactions, state
ledger_dataRaw ledger state entries
ledger_entrySingle ledger object
ledger_closedMost recently closed ledger
ledger_currentCurrent working ledger

Server Methods

MethodReturns
server_infoServer status and validated ledger
server_stateDetailed server state
server_definitionsProtocol type and field definitions

Rate Limits

Start free, scale when you need to.

PlanRatePrice
Free15 req/s$0/mo
Builder50 req/s$29/mo
Pro150 req/s$79/mo
Scale300 req/s$199/mo
EnterpriseCustomContact us
Get Started Free See Pricing