mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
fix: get-acct-info.js should use wss
Using https would result in:
(node) UnhandledPromiseRejectionWarning: ValidationError: server URI must start with `wss://`, `ws://`, `wss+unix://`, or `ws+unix://`.
at new Client (index.js:88:19)
This commit is contained in:
@@ -5,7 +5,7 @@ const xrpl = require("xrpl")
|
||||
async function main() {
|
||||
|
||||
// Define the network client
|
||||
const SERVER_URL = "https://s.altnet.rippletest.net:51234/"
|
||||
const SERVER_URL = "wss://s.altnet.rippletest.net:51233/"
|
||||
const client = new xrpl.Client(SERVER_URL)
|
||||
await client.connect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user