interface TransactionContent {
    amount: string | number;
    custom_charges?: CustomCharges;
    data: TransactionContentData;
    from: string;
    from_ed25519_address: string;
    gcr_edits: GCREdit[];
    nonce: number;
    timestamp: number;
    to: string;
    transaction_fee: TxFee;
    type:
        | "web2Request"
        | "crosschainOperation"
        | "subnet"
        | "native"
        | "demoswork"
        | "genesis"
        | "NODE_ONLINE"
        | "identity"
        | "instantMessaging"
        | "l2psInstantMessaging"
        | "nativeBridge"
        | "l2psEncryptedTx"
        | "storage"
        | "storageProgram"
        | "l2ps_hash_update"
        | "contractDeploy"
        | "contractCall"
        | "d402_payment"
        | "escrow"
        | "ipfs"
        | "tokenCreation"
        | "tokenExecution"
        | "validatorStake"
        | "validatorUnstake"
        | "validatorExit"
        | "networkUpgrade"
        | "networkUpgradeVote";
}

Properties

amount: string | number

Native DEM amount transferred by this transaction.

Wire-format compatibility:

  • Pre-fork node: encoded as JS number in DEM.
  • Post-fork node: encoded as a decimal string in OS (1 DEM = 10^9 OS).

Both shapes are accepted on input; the SDK's serializerGate (P4 commit 2) normalises to the right wire shape per fork status before signing. SDK-internal arithmetic always uses bigint OS via denomination utilities — never raw number, which loses precision above 2^53 OS (~9 million DEM).

custom_charges?: CustomCharges
from: string
from_ed25519_address: string
gcr_edits: GCREdit[]
nonce: number
timestamp: number
to: string
transaction_fee: TxFee
type:
    | "web2Request"
    | "crosschainOperation"
    | "subnet"
    | "native"
    | "demoswork"
    | "genesis"
    | "NODE_ONLINE"
    | "identity"
    | "instantMessaging"
    | "l2psInstantMessaging"
    | "nativeBridge"
    | "l2psEncryptedTx"
    | "storage"
    | "storageProgram"
    | "l2ps_hash_update"
    | "contractDeploy"
    | "contractCall"
    | "d402_payment"
    | "escrow"
    | "ipfs"
    | "tokenCreation"
    | "tokenExecution"
    | "validatorStake"
    | "validatorUnstake"
    | "validatorExit"
    | "networkUpgrade"
    | "networkUpgradeVote"