Network
Mainnet With Custom RPC#
- Beacon
- Taquito
import { DAppClient, NetworkType } from "@airgap/beacon-sdk";
const dAppClient = new DAppClient({ name: "Beacon Docs" });
// Mainnet with different rpcUrl
const result = await dAppClient.requestPermissions({
network: {
type: NetworkType.MAINNET,
rpcUrl: "https://mainnet-tezos.giganode.io/",
},
});
https://example.com
import { TezosToolkit } from "@taquito/taquito";
import { BeaconWallet } from "@taquito/beacon-wallet";
import { NetworkType } from "@airgap/beacon-sdk";
const Tezos = new TezosToolkit("https://mainnet-tezos.giganode.io");
const wallet = new BeaconWallet({ name: "Beacon Docs Taquito" });
Tezos.setWalletProvider(wallet);
// Mainnet with different rpcUrl
const result = await wallet.client.requestPermissions({
network: {
type: NetworkType.MAINNET,
rpcUrl: "https://mainnet-tezos.giganode.io/",
},
});
https://example.com
Testnet#
- Beacon
- Taquito
import { DAppClient, NetworkType } from "@airgap/beacon-sdk";
const dAppClient = new DAppClient({
name: "Beacon Docs",
preferredNetwork: NetworkType.EDONET,
});
// Edonet with default rpcUrl
const result = await dAppClient.requestPermissions({
network: {
type: NetworkType.EDONET,
},
});
https://example.com
import { TezosToolkit } from "@taquito/taquito";
import { BeaconWallet } from "@taquito/beacon-wallet";
import { NetworkType } from "@airgap/beacon-sdk";
const Tezos = new TezosToolkit("https://mainnet-tezos.giganode.io");
const wallet = new BeaconWallet({
name: "Beacon Docs",
preferredNetwork: NetworkType.EDONET,
});
Tezos.setWalletProvider(wallet);
// Edonet with default rpcUrl
const result = await wallet.client.requestPermissions({
network: {
type: NetworkType.EDONET,
},
});
https://example.com
Testnet With Custom RPC#
- Beacon
- Taquito
import { DAppClient, NetworkType } from "@airgap/beacon-sdk";
const dAppClient = new DAppClient({
name: "Beacon Docs",
preferredNetwork: NetworkType.EDONET,
});
// Edonet with different rpcUrl
const result = await dAppClient.requestPermissions({
network: {
type: NetworkType.EDONET,
rpcUrl: "https://testnet-tezos.giganode.io/",
},
});
https://example.com
import { TezosToolkit } from "@taquito/taquito";
import { BeaconWallet } from "@taquito/beacon-wallet";
import { NetworkType } from "@airgap/beacon-sdk";
const Tezos = new TezosToolkit("https://mainnet-tezos.giganode.io");
const wallet = new BeaconWallet({
name: "Beacon Docs",
preferredNetwork: NetworkType.EDONET,
});
Tezos.setWalletProvider(wallet);
// Edonet with different rpcUrl
const result = await wallet.client.requestPermissions({
network: {
type: NetworkType.EDONET,
rpcUrl: "https://testnet-tezos.giganode.io/",
},
});
https://example.com
Custom Network#
- Beacon
- Taquito
import { DAppClient, NetworkType } from "@airgap/beacon-sdk";
const dAppClient = new DAppClient({
name: "Beacon Docs",
preferredNetwork: NetworkType.CUSTOM,
});
// Custom network (eg. local development or latest testnet)
const result = await dAppClient.requestPermissions({
network: {
type: NetworkType.CUSTOM,
name: "Local Node",
rpcUrl: "http://localhost:8732/",
},
});
https://example.com
import { TezosToolkit } from "@taquito/taquito";
import { BeaconWallet } from "@taquito/beacon-wallet";
import { NetworkType } from "@airgap/beacon-sdk";
const Tezos = new TezosToolkit("https://mainnet-tezos.giganode.io");
const wallet = new BeaconWallet({
name: "Beacon Docs Taquito",
preferredNetwork: NetworkType.CUSTOM,
});
Tezos.setWalletProvider(wallet);
// Custom network (eg. local development or latest testnet)
const result = await wallet.client.requestPermissions({
network: {
type: NetworkType.CUSTOM,
name: "Local Node",
rpcUrl: "http://localhost:8732/",
},
});
https://example.com