Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Create/set "subId" by createSubscription() and get "subId" vrfCoordinatorV2_5Mock calling by javascript in hardhat environment

deploy.js: const { network, ethers } = require("hardhat") const { developmentChains, networkConfig } = require("../helper-hardhat-config") const { verify } = require("../...
Dennis's user avatar
  • 13
0 votes
2 answers
451 views

How to monitor events on an Solidity Smart Contract using hardhat and ethers?

I'd like to monitor events happening on-chain on a specific Smart Contract. I'd like to know every time a Transfer event happens. I tried to write a code with hardhat, but no events if being logged. ...
Daniel Cukier's user avatar
1 vote
1 answer
731 views

Filtering event always returns topics

I have an event in my contract: event CreatedUnfinishedRandomSVG(uint256 indexed tokenId, address nftOwner, uint256[] randomWords); In my JS script, I am trying to run some code only if the event that ...
pho_pho's user avatar
  • 157