Is it possible to read traits for a specific Noun on-chain? #409
Answered
by
solimander
cdt-eth
asked this question in
Solidity / smart contracts
-
Is it possible to read traits for a specific Noun on-chain? |
Beta Was this translation helpful? Give feedback.
Answered by
solimander
Mar 30, 2022
Replies: 1 comment
-
Yes, Noun trait seeds can be fetched on-chain by calling the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
solimander
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, Noun trait seeds can be fetched on-chain by calling the
seeds(nounId)
function on the NounsToken contract. The returned seed contains an array index for each trait, which can be used to lookup the trait name and image data.