1

is it possible to store data from .json file to blockchain via smart contract and if yes, how? I mean i have a json file with 4 total variables or a struct inside a struct, which i want to read, store and view via a smart contract. Thanks in advance.

1 Answer 1

1

A few people have put json parsers on chain, but it's generally an expensive task. The best idea is to usually just parse them off-chain and input them manually as to what you want them to be.

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.