Normal ERC721 and ERC1155 NFTs can usually be monitored with already exsisting tools like the OpenSea API. But there are a lot of more exotic projects that require a custom solution to track. In this hackathon i will be using ParsiQL to monitor the nftx smart contract, and log when new NFT vaults are created.
AdminUpgradeabilityProxy: 0xbe86f647b167567525ccaafcd6f881f1ee558216
NFTXVaultFactoryUpgradeable: 0x6a911d2aaabe631f8d7daa82afbfe38633cb0dab
Some information on the contract: Users deposit their NFT into an NFTX vault and mint a fungible ERC20 token (vToken) that represents a claim on a random asset from within the vault. vTokens can also be used to redeem a specific NFT from a vault.
1. I got the abi of the smart contract.
2. Uploaded it as json to the parsiq portal.
3. Selected the functions/events I needed in my smart triggers, selected my chain and named my user stream.
1. The first trigger is watching the createVault
function and outputting its parameters.
2. In my other trigger i'm doing a similar thing with the NewVault
event, which will give me the address of the newly created vault.
Note: I'm monitoring both the proxy and the actual contract because i couldn't find any information regarding proxy contracts in the PARSIQ docs.
Lastly i created a transport to output the data to google sheets and i configured that transport as a delivery channel in my triggers.
Google sheets:
It's incredibly easy to create custom monitoring solutions using PARSIQ and ParsiQL. In a few hours i was able to learn the platform and make smart triggres to track vault creation in the the nftx smart contract.