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?


2 Answers 2


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

More information in this answer.


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 that you have read and understand our privacy policy and code of conduct.

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