Questions tagged [json]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
50 views

How to add new record fields in data storage after contract deployment? Is storing JSON in a field viable?

AFAIK, there is no way to update storage types(ex: can't add a new record field to a Map<sp.Nat, sp.record(a=1)>) of a contract after deployment. (Correct me if I'm wrong). This means, after a ...
1
vote
1answer
69 views

Need help understanding smart contract method call of tzBTC

I need to be able to reconstruct history of transactions in tzBTC contract: https://better-call.dev/mainnet/KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn/operations If we filter operations by mint, we get two ...
0
votes
1answer
30 views

What does `consequence of bad union` mean when injecting a block?

Attempted to inject this block but got error: Invalid_argument "Json_encoding.construct: consequence of bad union" What does this error actually mean? The contents of the block look fine; it ...
2
votes
4answers
128 views

Is there a formula to build parameter messages to be passed to smart contract entrypoints?

When calling a smart contract entrypoint, it is required to pass the needed entrypoint parameters. This is done through a message that must be sent in JSON/Pairs format. My doubt is: Is there a ...
1
vote
2answers
208 views

Pretty-printing Micheline JSON

How can I pretty-print a Michelson contract in JSON to concrete syntax?