Const
An object of default websocket strings, indexed by network name. https://github.com/standardconnect/xdir/blob/main/src/utils/wss.ts
Using the full object...
import xdir from 'xdir';const mainnet_wss = xdir.wss// mainnet_wss = {// mainnet: 'wss://xrplcluster.com',// testnet: 'wss://s.altnet.rippletest.net:51233',// hooks: 'wss://hooks-testnet-v2.xrpl-labs.com',// xevm: null,// devnet: 'wss://s.devnet.rippletest.net:51233',// xls20: 'wss://xls20-sandbox.rippletest.net:51233',// amm: 'wss://amm.devnet.rippletest.net:51233',// ...// }
Getting a specific network websocket string...
import xdir from 'xdir';const mainnet_wss = xdir.wss.mainnet // "wss://xrplcluster.com"
Usage with xrpljs...
import xdir from 'xdir';import xrpl from 'xrpl';const client = new xrpl.client(xdir.wss.mainnet)
Generated using TypeDoc
An object of default websocket strings, indexed by network name. https://github.com/standardconnect/xdir/blob/main/src/utils/wss.ts
Example
Using the full object...
Getting a specific network websocket string...
Usage with xrpljs...