Introduction
import { ethers } from "ethers";
const subscriptionContractAddress = "0xadac08d7d5bf608d622a94bfab669b38fdc7bcb2";
const signer = new ethers.Wallet("private key of the wallet signing transactions");
const contract = new ethers.Contract(
subscriptionContractAddress,
[you will find the full ABI on the next page],
signer // Can also just be an InfuraProvider for reading data
);
// Once you have your contract you can read information from the deployed subscription
// contract or sign transactions depending on the provider given as an argument when
// instantiating the contract.
const isSubscribed = await contract.isSubscribed("0xsomeuseraddresstocheck");Last updated