Hat Image URIs
Like any other NFT, hats have images. The image for a given hat is determined by the following logic:
If the hat's
imageURI
property is set, use thatIf the hat's
imageURI
property is not set, then use theimageURI
of the hat's admin HatIf the admin hat's
imageURI
property is not set, then use theimageURI
of that hat's adminRepeat (3) until you find an
imageURI
that is setIf no set
imageURI
is found within the original hat's hat tree (including the Top Hat), then use theglobalImageURI
set in the Hats Protocol contract
This logic creates flexibility for DAOs to efficiently customize images for their hats, while keeping images as optional and hat creation relatively cheap.
Last updated