Balance-mutation GCR edit — adds to or subtracts from a sender/receiver
balance, or burns a fee.
Wire-format compatibility (P4): amount may be either a JS number
(pre-fork node, DEM) or a decimal string in OS (post-fork node). The
SDK's GCRGeneration populates the field with whichever shape matches
the connected node's fork status.
Important: the node's post-fork serializer (forks/serializerGate.ts)
does not re-encode gcr_edits[].amount. Whatever the SDK puts here
is the wire format and contributes directly to the transaction
hash. Construction-site correctness is the contract.
Balance-mutation GCR edit — adds to or subtracts from a sender/receiver balance, or burns a fee.
Wire-format compatibility (P4):
amountmay be either a JSnumber(pre-fork node, DEM) or a decimalstringin OS (post-fork node). The SDK'sGCRGenerationpopulates the field with whichever shape matches the connected node's fork status.Important: the node's post-fork serializer (
forks/serializerGate.ts) does not re-encodegcr_edits[].amount. Whatever the SDK puts here is the wire format and contributes directly to the transaction hash. Construction-site correctness is the contract.