Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const CONFIGS = providers.map((provider) => {
const Tezos = new TezosToolkit();
Tezos.setProvider({ rpc: provider })
return {
rpc: provider, lib: Tezos, setup: async () => {
let faucetKey = {
email: "peqjckge.qkrrajzs@tezos.example.org",
password: "y4BX7qS1UE", mnemonic: [
"skate",
"damp",
"faculty",
"morning",
"bring",
"ridge",
"traffic",
"initial",
"piece",
"annual",
function createTK() {
const tk = new TezosToolkit();
tk.setProvider({ rpc: 'https://alphanet-node.tzscan.io' });
return tk;
}
import { TezosToolkit } from "@taquito/taquito";
import React from "react";
export const TezosContext = React.createContext(new TezosToolkit());
function createTK() {
const tk = new TezosToolkit();
tk.setProvider({ rpc: 'https://alphanet-node.tzscan.io' });
return tk;
}