diff --git a/our-data/featured-tags-and-sql-examples/README.md b/our-data/featured-tags-and-sql-examples/README.md index e8fdcf6..81705d6 100644 --- a/our-data/featured-tags-and-sql-examples/README.md +++ b/our-data/featured-tags-and-sql-examples/README.md @@ -20,6 +20,7 @@ Don't see the perfect tag? [Add your own! ](how-to-add-your-own-tags.md#how-to-a | Tag Type | | -------------------------------------------------- | +| [token standard](./#token-standard) | | [contract](./#contract) | | [cex (centralized exchange)](./#cex) | | [dex (decentralized exchange)](./#dex) | @@ -27,6 +28,33 @@ Don't see the perfect tag? [Add your own! ](how-to-add-your-own-tags.md#how-to-a | [activity (general behavior)](./#activity) | | [wallet (token contents of an address)](./#wallet) | +### Token Standard + +Tag\_type 'token standard' is a set of tags that define the token standard of an address! + +| tag\_name | description | blockchains | +| -------------- | ------------------------------------- | ----------- | +| erc-20 | An erc-20 address | ethereum | +| erc-721 | An erc-721 address | ethereum | +| erc-1155 | An erc-1151 address | ethereum | +| erc-4626 | An erc-4626 address | ethereum | +| erc-6551 | An erc-6551 address | ethereum | +| erc-6551 owner | A token address that owns an erc-6551 | ethereum | + +Want to know the difference in behaviors of erc-721's vs. erc-1155's? Leveraging the 'token standard' tag\_name will make this segmentation and subsequent analysis trivial! + +The code below will find all erc-721s that are on Ethereum! + +```sql +select + distinct address +from crosschain.core.address_tags +where + tag_type = 'token standard' + and tag_name = 'erc-721' + and creator = 'flipside' +``` + ### Contract Tag\_type 'contract' is a group of tags that call out contract addresses! \