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.

interface GCREditBalance {
    account: string;
    amount: string | number;
    isRollback: boolean;
    operation: "add" | "remove";
    txhash: string;
    type: "balance";
}

Properties

account: string
amount: string | number
isRollback: boolean
operation: "add" | "remove"
txhash: string
type