Files
xrpl-dev-portal/_code-samples/get-started/js/base.js
2025-09-02 18:57:09 +01:00

12 lines
350 B
JavaScript

// In browsers, use a <script> tag. In Node.js, uncomment the following line:
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()