Different octez.connect Node
You can configure the dApp or Wallet to connect to a different octez.connect node. Make sure the servers you use are whitelisted in the octez.connect network and federation is working correctly.
- octez.connect
- taquito
Example
import { DAppClient, Regions } from "@tezos-x/octez.connect-sdk"; const dAppClient = new DAppClient({ name: "Beacon Docs", matrixNodes: { [Regions.EUROPE_WEST]: ["beacon-node-1.octez.io:8448"], }, }); try { console.log("Requesting permissions..."); const permissions = await dAppClient.requestPermissions(); console.log("Got permissions:", permissions.address); } catch (error) { console.error("Got error:", error); }
Loading...
Example
import { TezosToolkit } from "@taquito/taquito"; import { BeaconWallet } from "@taquito/beacon-wallet"; import { Regions } from "@tezos-x/octez.connect-sdk"; const Tezos = new TezosToolkit("https://mainnet.api.tez.ie"); const wallet = new BeaconWallet({ name: "Beacon Docs Taquito", matrixNodes: { [Regions.EUROPE_WEST]: ["beacon-node-1.octez.io:8448"], }, }); Tezos.setWalletProvider(wallet); try { const permissions = await wallet.client.requestPermissions(); console.log("Got permissions:", permissions.address); } catch (error) { console.error("Got error:", error); }
Loading...
tip
The octez.connect SDK deterministically chooses one of the nodes in the array. Changing the array of nodes will most likely lead to users losing their connection.