Files
xrpl-dev-portal/_code-samples/get-started/js/base.js
Maria Shodunke 126cdbb00a Apply suggestions from code review
Co-authored-by: Rome Reginelli <rome@ripple.com>
2025-09-02 18:57:09 +01:00

12 lines
349 B
JavaScript

// You can also use a <script> tag in browsers or require('xrpl') in Node.js
import xrpl from 'xrpl'
// Define the network client
const client = new xrpl.Client("wss://s.altnet.rippletest.net:51233")
await client.connect()
// ... custom code goes here
// Disconnect when done (If you omit this, Node.js won't end the process)
client.disconnect()