2

I have function in a smart contract that needs to know a specific value from the metadata which I will publish on IPFS. Is there a way to parse it through or to get the value from the metadata?

thanks!

2 Answers 2

1

This is not possible, because it would violate the deterministic principle of a blockchain.

More information in this answer.

1

You would have to use oracles to access such data. Here an example for such an oracle: https://blog.chain.link/fetch-ipfs-api-data-token-distribution/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.