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:
Elliot Lee
2023-09-12 07:32:02 -07:00
committed by GitHub
parent ba8a99312a
commit f2afd7e3a5

View File

@@ -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()