In this short tutorial you'll make your first request against a public Honeycluster endpoint and inspect the response.
Use the main public endpoint for mainnet:
wss://honeycluster.io
TypeScriptimport { Client } from 'xrpl' const client = new Client('wss://honeycluster.io') await client.connect() client.on('ledgerClosed', (ledger) => { console.log('New ledger', ledger.ledger_index) }) await client.request({ command: 'subscribe', streams: ['ledger'] })
TypeScriptawait client.disconnect()
That's it — you're now receiving live ledger notifications from Honeycluster.