A function to find the network name given an RPC endpoint. https://github.com/standardconnect/xdir/blob/main/src/utils/id.ts#L51
import xdir from 'xdir';const name = xdir.getNetworkNameByRPC('https://xrplcluster.com') // 'mainnet'
Generated using TypeDoc
A function to find the network name given an RPC endpoint. https://github.com/standardconnect/xdir/blob/main/src/utils/id.ts#L51
Example