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.
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).
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
.
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.
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