Development

What is the XRPL Explorer (XRPScan, Bithomp)?

Last updated:

XRPL Explorers are web-based tools that provide human-readable views of blockchain data, allowing anyone to search, view, and analyze transactions, accounts, tokens, and network activity on the XRP Ledger. The two most prominent explorers are XRPScan and Bithomp, each offering unique features for developers and users.

What is a Blockchain Explorer?

A blockchain explorer acts as a search engine and browser for blockchain data. While the XRPL stores data in a technical format optimized for validators and nodes, explorers translate this data into user-friendly interfaces. They allow you to search by address, transaction hash, ledger number, or token name, and display detailed information about accounts, transactions, balances, token holdings, NFTs, DEX activity, and network statistics.

XRPScan (xrpscan.com)

XRPScan is one of the most comprehensive XRPL explorers, offering detailed analytics and clean user interface design.

Key features include transaction lookup where you can search any transaction hash to view sender, receiver, amount, fee, result code, ledger index, timestamp, and complete transaction metadata. Account information displays XRP balance, token holdings, NFT collections, transaction history, trust lines, offers on DEX, and account settings.

Token analytics show issued currency information including issuer details, total supply, holder distribution, trust line count, and price charts. NFT Gallery provides visual browsing of all NFTs with metadata display, owner information, transfer history, and marketplace integration.

DEX Analytics track trading pairs, order books, recent trades, price charts, and volume statistics. Network Statistics display current TPS, ledger close time, fee levels, validator performance, and amendment status.

Using XRPScan

To lookup a transaction, visit xrpscan.com and enter the transaction hash in the search bar. For example, searching "E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7" shows complete transaction details.

To view an account, enter any XRPL address like "rN7n7otQDd6FczFgLdlqtyMVrn3qHwuSJ1" to see all account data including balance history, transaction activity, and token holdings.

To track tokens, search by currency code and issuer to view complete token information, holder analytics, and trading activity.

XRPScan API

XRPScan provides a free API for programmatic access:

```javascript const axios = require('axios');

async function getAccountInfo(address) { try { const response = await axios.get( `https://api.xrpscan.com/api/v1/account/${address}` ); console.log('Account:', response.data.account); console.log('Balance:', response.data.xrpBalance, 'XRP'); console.log('Tokens:', response.data.tokens); return response.data; } catch (error) { console.error('Error:', error.message); } }

getAccountInfo('rN7n7otQDd6FczFgLdlqtyMVrn3qHwuSJ1'); ```

Get transaction details:

```javascript async function getTransaction(hash) { const response = await axios.get( `https://api.xrpscan.com/api/v1/tx/${hash}` ); console.log('Type:', response.data.TransactionType); console.log('Result:', response.data.meta.TransactionResult); console.log('Fee:', response.data.Fee, 'drops'); return response.data; } ```

Bithomp (bithomp.com)

Bithomp is another powerful XRPL explorer with advanced analytics and unique features.

Key features include Advanced Transaction Visualization with graphical representations of payment flows, trust line networks, and account relationships. Payment Path Analysis shows how payments route through XRPL including intermediate steps, currency conversions, and fees at each hop.

Custom Reports allow you to generate reports for specific accounts, date ranges, or transaction types, useful for accounting and tax purposes. Username Integration displays human-readable names for known addresses from Bithomp's username service.

Historical Data Analysis provides deep historical insights including balance history over time, transaction trends, and network growth metrics. API Access offers comprehensive API for developers.

Using Bithomp

The interface is similar to XRPScan. Search for addresses, transaction hashes, or usernames. Bithomp's unique feature is its payment visualization which shows transaction flows graphically.

For example, viewing a complex payment through multiple currencies shows each conversion step, exchange rate, and intermediate account involved.

Bithomp API

Access Bithomp data programmatically:

```javascript async function getBithompAccountInfo(address) { const response = await axios.get( `https://bithomp.com/api/v2/address/${address}` ); console.log('Username:', response.data.username); console.log('Balance:', response.data.balance); console.log('Inception:', response.data.inception); return response.data; } ```

Other Notable Explorers

Livenet (livenet.xrpl.org) is Ripple's official explorer focused on network health and validator information. Ideal for monitoring network status and amendment voting.

XRP Charts (xrpcharts.ripple.com) provides market data and trading analytics with focus on DEX activity and price charts.

XRPLorer provides simple, clean interface for basic lookups and transaction verification.

Developer Use Cases

Debugging Transactions

When a transaction fails, explorers help identify the issue:

```javascript const xrpl = require('xrpl');

async function submitAndDebug(transaction, wallet) { const client = new xrpl.Client('wss://xrplcluster.com'); await client.connect(); try { const prepared = await client.autofill(transaction); const signed = wallet.sign(prepared); const result = await client.submitAndWait(signed.tx_blob); const hash = result.result.hash; console.log('Transaction submitted:', hash); console.log('View on XRPScan: https://xrpscan.com/tx/' + hash); console.log('View on Bithomp: https://bithomp.com/explorer/' + hash); if (result.result.meta.TransactionResult !== 'tesSUCCESS') { console.error('Transaction failed:', result.result.meta.TransactionResult); console.log('Check explorer for details'); } } catch (error) { console.error('Error:', error.message); } finally { await client.disconnect(); } } ```

Verifying Account State

Explorers help verify account configuration:

```javascript async function verifyAccountSetup(address) { console.log('Verify account setup at:'); console.log(`XRPScan: https://xrpscan.com/account/${address}`); console.log(`Bithomp: https://bithomp.com/explorer/${address}`); // Check specific flags or settings visually console.log('\nCheck for:'); console.log('- Sufficient XRP balance'); console.log('- Required trust lines'); console.log('- DefaultRipple flag (for issuers)'); console.log('- Domain verification'); } ```

Monitoring Token Adoption

Track how your issued token is being used:

```javascript async function monitorToken(currencyCode, issuer) { console.log(`Monitor token: ${currencyCode}`); console.log(`Issuer: ${issuer}`); console.log(`\nXRPScan: https://xrpscan.com/token/${currencyCode}:${issuer}`); console.log(`Check: trust lines, holder count, trading volume`); } ```

Tracking NFT Collections

Explorers display NFT collections beautifully:

```javascript function viewNFTCollection(issuerAddress) { console.log('View NFT collection:'); console.log(`XRPScan: https://xrpscan.com/account/${issuerAddress}#nfts`); console.log(`Bithomp: https://bithomp.com/nft-explorer?issuer=${issuerAddress}`); } ```

Explorer APIs in Production

Many applications integrate explorer APIs for displaying transaction confirmations:

```javascript class XRPLPaymentService { async processPayment(payment, wallet) { // Submit transaction const result = await this.client.submitAndWait( wallet.sign(await this.client.autofill(payment)).tx_blob ); const hash = result.result.hash; // Return confirmation with explorer links return { success: result.result.meta.TransactionResult === 'tesSUCCESS', hash: hash, explorerLinks: { xrpscan: `https://xrpscan.com/tx/${hash}`, bithomp: `https://bithomp.com/explorer/${hash}` } }; } } ```

Testnet Explorers

Both XRPScan and Bithomp support testnet. Use test.xrpscan.com and testnet.bithomp.com for development.

Privacy Considerations

Explorers show all public blockchain data. XRPL transactions are public and permanent. Never put sensitive information in transaction memos. Use destination tags for payment identification, not personal data.

Best Practices

Use explorers to verify transactions before and after submission. Link to explorer pages in user interfaces for transparency. Monitor your accounts regularly for unexpected activity. Check network status on explorers before submitting critical transactions.

XRPL explorers are indispensable tools for developers and users, providing transparency, debugging capabilities, and comprehensive analytics for the XRP Ledger ecosystem.

Was this helpful?

Related Questions

Go Deeper

Expand your knowledge with these related lessons

Tools of the Trade - Data Sources and Platforms

60 minadvanced

Data Sources and Tools - Where to Get Reliable Information

55 minintermediate

XRPL DEX Trading Activity

XRPL DEX Analytics Report with volume trends, liquidity analysis, and opportunity identification

35 minbeginner

Have more questions?

Browse our complete FAQ or contact support.