ERC721 tokens
Monitor any ERC-721 compatible token
The ERC721 standard is an interface for non-fungible tokens, also known as deeds. Let's see how HAL can be used to track events for one of the most adopted token, Crypto Kitties.
Track when a new auction for a kitten you like is created
Create a new Event Trigger
In the form field, insert 0x1f52b87C3503e537853e160adBF7E330eA0Be7C4 (SaleClockAuction)
From the "contract event to watch" dropdown menu, select
AuctionCreated
In the "tokenId" field, insert the id for the kitten you want to track
You need to specify the right contract for the Event you're interested in watching. For example, AuctionCreated
is defined in the SaleClockAuction
contract (rather than in the main KittyCore
contract).
Track when a kitten is ready to breed again
Create a new Contract Trigger
In the form field, insert 0x06012c8cf97bead5deae237070f9587f8e7a266d (KittyCore)
From the "contract function to watch" dropdown menu, select
isReadyToBreed
In the _kittyId field, insert the id of the kitten you want to track
In the "returns" field, select
true
.
Track when kitten ownership is assigned to you, including births
Create a new Event Trigger
In the form field, insert 0x06012c8cf97BEaD5deAe237070F9587f8E7A266d (KittyCore)
From the "contract event to watch" dropdown menu, select
Transfer
In the "to" field, insert your address
The transfer event as defined in ERC721 is emitted every time a kitten ownership is assigned, including births. If you want to track specifically new births, you can use the Birth
event instead.
Track when a certain kitten gives birth as a matron
Create a new Event Trigger
In the form field, insert 0x06012c8cf97BEaD5deAe237070F9587f8E7A266d
From the "contract event to watch" dropdown menu, select
Birth
In the "matronId" field, insert the id for the kitten you want to track
Last updated