Logo
New RPC users get 35% off their first monthView the offer
RPC Assistant

XRPL Network: What Developers Should Know Before Connecting

Summary

The XRP Ledger (XRPL) is a public, permissionless blockchain that has been running since 2012. It is best known for fast, low-cost settlement of XRP and issued tokens, but it also supports a native decentralized exchange, trust lines, NFTs, and payment channels. When developers search for "xrpl network," they usually want to understand what the network is, how to connect to it programmatically, and what that means for building or operating an app.

The XRPL does not use the same JSON-RPC interface as EVM chains. Instead, it exposes its own HTTP and WebSocket APIs through rippled servers. You can query account balances, submit transactions, subscribe to ledger events, and inspect the ledger state. The network has a native DEX and path-based payments, so many API calls are XRPL-specific rather than generic eth_* methods.

This article explains the XRPL network from a developer's perspective, shows how to think about endpoints and connection settings, and helps you decide whether a public server, a managed RPC provider, or a dedicated node is the right fit for your workload. OnFinality provides RPC API and dedicated node infrastructure for supported networks; check the supported RPC networks page for current coverage and RPC pricing for plan details.

Key Takeaways

  • XRPL is a public blockchain with its own HTTP and WebSocket APIs, not an EVM JSON-RPC chain.
  • Most XRPL interactions use rippled methods such as account_info, submit, and subscribe.
  • Public XRPL servers are fine for prototyping but are shared and rate-limited.
  • Production apps should evaluate managed RPC providers or dedicated nodes for reliability and isolation.
  • WebSocket subscriptions are useful for real-time ledger and account monitoring.
  • Check OnFinality's supported networks and pricing pages before committing to a provider.

XRPL in one paragraph

The XRP Ledger is a decentralized public blockchain launched in 2012. It maintains a shared ledger of accounts, balances, trust lines, offers, and other objects, and it reaches consensus through a set of validators rather than proof-of-work mining. XRP is the native asset used to pay transaction fees and to bridge value on the ledger's built-in decentralized exchange.

For developers, the important point is that XRPL is not an EVM chain. You do not connect with eth_call or eth_getBalance. Instead, you talk to a rippled server over HTTP or WebSocket and use XRPL-specific methods. That difference shapes everything from endpoint configuration to how you monitor transactions.

  • Native asset: XRP
  • Primary server software: rippled
  • APIs: HTTP JSON, WebSocket, and command-line
  • Common use cases: payments, token issuance, DEX trading, NFTs, payment channels

How XRPL endpoints differ from EVM RPC

EVM developers are used to a single JSON-RPC endpoint that accepts methods like eth_blockNumber and eth_getLogs. XRPL works differently. A rippled server exposes a request/response API where each request has a method field and method-specific parameters. Responses include a result object with fields such as account_data, ledger_current_index, or validated.

You can send these requests over HTTP with a POST body, or over WebSocket for streaming. WebSocket connections are especially useful because they support subscribe commands that push ledger, transaction, and account events to your client in real time.

CriterionWhat to checkWhy it matters
TransportHTTP POST for request/response; WebSocket for subscriptions and streamingChoosing the wrong transport limits real-time features and can increase polling load
Method namespaceXRPL methods such as account_info, submit, subscribe, ledgerEVM-style methods will not work; your client library must speak XRPL
Ledger indexWhether you need validated ledger data or current open ledgerValidated data is final; open ledger data can change
AuthenticationAPI key or token requirements from your providerPublic servers may not require keys but are shared and rate-limited

Chain settings at a glance

When you configure an XRPL connection, you need the endpoint URL, the transport, and the network identity. XRPL does not use an EVM-style chain ID in the same way, but you should still confirm you are connecting to mainnet versus a test network. The native asset is XRP, and the base reserve and owner reserve are ledger parameters that affect account funding.

If you are using a managed provider, the provider supplies the endpoint URL and any API key. If you are running your own rippled server, you control the configuration file and peer settings. In both cases, keep the endpoint and network identity in environment variables so you can switch between development and production without code changes.

CriterionWhat to checkWhy it matters
NetworkMainnet or test networkTransactions and assets are not shared across networks
Endpoint URLProvider-supplied HTTP or WebSocket URLThe URL determines transport and authentication
Native assetXRPFees and reserves are denominated in XRP
ReservesBase reserve and owner reserve from ledger stateAccounts need enough XRP to meet reserves before creating objects
ExplorerA ledger explorer for debuggingExplorers help you verify transactions and ledger state independently

Quick recommendation: public server, managed RPC, or dedicated node?

The right endpoint depends on your workload and how much control you need. A public XRPL server is convenient for learning and low-volume scripts, but it is shared with other users and may apply rate limits. A managed RPC provider gives you a maintained endpoint with support and predictable access, which is often the best fit for production apps that do not want to operate infrastructure. A dedicated node gives you isolated capacity and configuration control, which matters for high-volume services, indexers, or teams with strict operational requirements.

OnFinality provides RPC API and dedicated node infrastructure for supported networks. Check the supported RPC networks page to confirm current XRPL coverage, and review RPC pricing to compare plans. If you are still evaluating providers, the provider selection guide walks through workload, limits, archive needs, and failover.

CriterionWhat to checkWhy it matters
Prototyping and scriptsPublic server or free tierLow cost and quick setup, but shared capacity
Production app with moderate trafficManaged RPC API with supportPredictable access without operating rippled
High-volume indexer or exchange integrationDedicated node with isolated capacityControl over performance, configuration, and data access
Real-time monitoringWebSocket support and subscription limitsStreaming avoids polling overhead and reduces latency

Making your first XRPL request

The simplest way to test an XRPL endpoint is to send an HTTP POST with a JSON body. The following example uses a placeholder endpoint; replace it with the URL from your provider or your own rippled server. The request asks for the current validated ledger index.

``bash curl -X POST "$XRPL_ENDPOINT" \ -H "Content-Type: application/json" \ -d '{"method":"ledger","params":[{"ledger_index":"validated"}]}' ``

For account queries, use account_info with the account address. For transaction submission, use submit with a signed transaction blob. Always check the result.validated field when you need finality, and handle engine_result values carefully when submitting transactions.

  • Use ledger with ledger_index: "validated" to confirm finality
  • Use account_info to read balances and sequence numbers
  • Use submit with a signed blob to send transactions
  • Use subscribe over WebSocket for real-time events

Debug path for common XRPL connection problems

Most XRPL connection issues fall into a few categories: wrong transport, wrong network, authentication failures, or rate limits. Start by confirming the endpoint URL and whether it expects HTTP or WebSocket. Then confirm you are on the network you intended. If you receive an authentication error, check the API key or token. If requests slow down or fail intermittently, you may be hitting rate limits on a shared server.

For transaction-level issues, inspect the engine_result and engine_result_message fields. A tec result usually means the transaction was applied but failed a condition, while tem and tef results indicate malformed or invalid transactions. Use a ledger explorer to cross-check the transaction hash and ledger index.

CriterionWhat to checkWhy it matters
Connection refused or timeoutEndpoint URL, transport, and network reachabilityWrong protocol or host prevents any request from succeeding
Authentication errorAPI key, token, or header requirementsManaged endpoints often require credentials
Intermittent failuresRate limits and request volumeShared servers may throttle bursts
Transaction not validatedengine_result, fee, and sequence numberMalformed or underfunded transactions do not apply

Operational checklist before you go live

Before you move to production, confirm that your endpoint choice matches your workload. If you are using a managed provider, verify the supported methods, rate limits, and WebSocket availability. If you are running a dedicated node, plan for monitoring, upgrades, and failover. In both cases, keep a fallback endpoint so a single failure does not take down your service.

OnFinality's RPC API service and dedicated node options are designed to support teams that want to avoid operating infrastructure themselves. Review the supported RPC networks page for current coverage and RPC pricing for plan details.

  • Confirm HTTP and WebSocket support for your use case
  • Check rate limits and request quotas
  • Set up a fallback endpoint
  • Monitor ledger lag and error rates
  • Plan for key management and transaction signing
  • Document your network identity and reserve requirements

Frequently Asked Questions

Is XRPL the same as XRP?

No. XRP is the native digital asset, while XRPL (the XRP Ledger) is the blockchain network that records XRP balances and other ledger objects.

Does XRPL use JSON-RPC like Ethereum?

XRPL uses its own HTTP and WebSocket API with methods such as account_info and submit. It is not compatible with EVM JSON-RPC methods.

Can I use WebSocket with XRPL?

Yes. XRPL rippled servers support WebSocket connections, including subscribe commands for real-time ledger, transaction, and account events.

Do I need a dedicated node for XRPL?

Not always. Public servers and managed RPC providers are fine for many apps. A dedicated node is useful when you need isolated capacity, custom configuration, or stricter operational control.

Where can I find OnFinality's XRPL support details?

Check the supported RPC networks page for current coverage and the RPC pricing page for plan information.

RPC Knowledge Base

Related RPC details

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started