Created
April 11, 2024 12:55
-
-
Save airled/e37404e969751a74dcf06a70ea845614 to your computer and use it in GitHub Desktop.
ETH contract call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ethers } = require("ethers"); | |
const rpcUrl = '' | |
const contractAddress = '' | |
const abi = [] | |
async function main() { | |
const provider = new ethers.JsonRpcProvider(rpcUrl); | |
const signer = new ethers.Wallet("", provider) | |
const contract = new ethers.Contract(contractAddress, abi, signer); | |
contract.mint().then(console.log) | |
// contract.tokenURI(0).then(console.log) | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment