assembly/utils/web3.ts

17 lines
414 B
TypeScript
Raw Normal View History

2021-07-21 20:53:46 +00:00
import Web3 from "web3";
const mainnetInfura = "https://mainnet.infura.io/v3/";
const polygonInfura = "https://polygon-mainnet.infura.io/v3/";
export const polygonWeb3 = new Web3(
new Web3.providers.HttpProvider(
2021-07-26 22:19:20 +00:00
polygonInfura + "19c4b8b779a343e6ac5a91f4eaf55b81"
2021-07-21 20:53:46 +00:00
)
);
export const mainnetWeb3 = new Web3(
new Web3.providers.HttpProvider(
2021-07-26 22:19:20 +00:00
mainnetInfura + "19c4b8b779a343e6ac5a91f4eaf55b81"
2021-07-21 20:53:46 +00:00
)
);