How to create subscription for VRF coordinator on rinkeby #1775
-
Hey guys, For the deployments done manually, we can use ethers.getContract("contractName"), |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@deeptshukla Refer: https://vrf.chain.link/ The above has the address and other things you might be looking for. |
Beta Was this translation helpful? Give feedback.
-
Hey I got the answer to this. let vrfContract = await ethers.getContractAt(abi, address, signer). Now we can call the functions for subscription and addConsumer through this connected contract |
Beta Was this translation helpful? Give feedback.
Hey I got the answer to this.
You can connect to the contract with
let vrfContract = await ethers.getContractAt(abi, address, signer).
abi can be obtained from compiling locally the interface for the contract.
Now we can call the functions for subscription and addConsumer through this connected contract