Skip to content

SWAPDEX ENDPOINTS


When interacting with the SwapDEX network via our substrate explorer app or other UIs and programmatic methods, you'd ideally be running your own node ( text guide ). Granted, that's not something everyone wants to do, so convenience trumps ideals in most cases. To facilitate this convenience, SwapDEX has several public endpoints you can use for your DApps.

Starkley Tech Archive Node


Starkley Tech, the company that develops the SwapDEX Rust client, maintains an archive node at endpoint https://rpc.swapdex.network/

To connect to the Starkley Tech node, use the endpoint in your JavaScript DApps like so:

const{ ApiPromise, WsProvider } = require('@polkadot/api')

(async () => {
    const provider = new WsProvider('wss://ws.swapdex.network')
    const api = await ApiPromise.create({ provider })
    // ...
or in SwapDEX Substrate Explorer by clicking on the top-left corner of the screen and opening up the LIVE NETWORKS group and selecting SwapDEX and via Swapdex

img



Written by Masterdubs & Petar

Back to top