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?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
This is not possible, because it would violate the deterministic principle of a blockchain.
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/