Attaching a JSON Schema to your smart contract code is a crucial step that enhances clarity for developers interacting with the blockchain. It can be done at various stages of contract management and deployment within Celatone.Uploaded JSON schemas are stored locally on your device, ensuring quick access and reference. An option to attach a JSON schema is also provided, allowing users to enrich the code details for better clarity and ease of use.
After stored the code: Immediately after uploading a WASM file, you can attach a corresponding JSON Schema.
During Query/Execute: While querying or executing a contract, you can attach a JSON Schema to ensure proper input formatting.
Contract Details: On the Contract Details page, attaching a JSON Schema will link it to the associated code.
Code Details: You can attach a JSON Schema directly on the Code Details page, which will then be associated with all contracts instantiated from that code.