Options for buildTransactionBody method.

interface TransactionBodyOptions {
    blockRef?: string;
    chainTag?: number;
    dependsOn?: string;
    expiration?: number;
    gas?: string | number;
    gasLimit?: string;
    gasPrice?: string;
    gasPriceCoef?: number;
    isDelegated?: boolean;
    maxFeePerGas?: string | number;
    maxPriorityFeePerGas?: string | number;
    nonce?: string | number;
}

Properties

blockRef?: string

8 bytes prefix of some block's ID

chainTag?: number

Last byte of genesis block ID

dependsOn?: string

The ID of the transaction that this transaction depends on.

expiration?: number

The expiration time of the transaction. The transaction will expire after the number of blocks specified by this value.

gas?: string | number

Transaction gas.

gasLimit?: string

The maximum amount of gas to allow this transaction to consume.

gasPrice?: string

The gas price to use for legacy transactions or transactions on legacy networks.

Most of the time the max*FeePerGas is preferred.

gasPriceCoef?: number

Coefficient used to calculate the gas price for the transaction. Value must be between 0 and 255.

isDelegated?: boolean

Whether the transaction is delegated to another account for gas payment.

maxFeePerGas?: string | number

The maximum fee per gas for the transaction.

maxPriorityFeePerGas?: string | number

The maximum priority fee per gas for the transaction.

nonce?: string | number

Nonce value for various purposes. Basic is to prevent replay attack by make transaction unique. Every transaction with same chainTag, blockRef, ... must have different nonce.