lesson 14 NFT lesson Basic questions #3144
Unanswered
TimeKeyRoll
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@abossofmyself You think you could help me with this explanation please? would highly appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Q1A simple explanation from StackOverflow (basically, we are decoding and then parsing to JSON--primarily used for URI): A technical, elaborate specification from docs: https://jb64.org/specification/ Q2 and Q3Relevant code snippet please. Q4This requires a separate discussion for relevance and involves debugging. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I have a couple of questions about NFT dynamic Contract. Anyone who thinks they can help me to understand it they are welcome to answer/comment.
Question- I want to know if they are a part of JavaScript or where they are coming from? Or they are just called
Prefix
and part of any language?"data:image/svg+xml;base64,";
and"data:application/json;base64,"
.Question- We are using
_baseURI
function and returning itreturn "data:application/json;base64,";
And Adding this function to
tokenURI
for concatenating theImages
but this is forjson file
as name suggests but not forimages
. I really don't understand how this is helping us to getimages
intokenURI
?Question- In function
tokenURI
we are changing ourabi.encodePacked
data tobytes
before changing it tobase64
. why can't we straight change our data intobase64
why do we need to change it first atbytes
first?Question- I have compiled the contract and have forgot to store
image
and metaDataURI. I want to test
contract` and have not any URI's with me. how do i re-get that ?Beta Was this translation helpful? Give feedback.
All reactions