supra-ts-sdk - v2.0.0
    Preparing search index...

    Interface SimulationStateChangesBeta

    The state-change fields that POST /rpc/v4/transactions/simulate adds to a simulated transaction. A node whose /rpc/v4 route answers as /rpc/v3 does (Mainnet and Testnet nodes of supra_node_v11.7.x) sends none of them, so each is optional here.

    Preview: wraps an API added in supra_node_v12.0.0, which may change until that release reaches Testnet.

    interface SimulationStateChanges {
        state_height?: number | null;
        changes?: WriteSetChange[];
        prior_values?: Record<string, WriteSetChange[] | null>;
        omitted?: OmittedStateKey[];
        omitted_counts?: OmittedStateKeyCounts;
        changes_truncated?: boolean;
    }
    Index
    state_height?: number | null

    The height of the last block the node had executed when it took the snapshot the simulation ran against, or null when it had executed none.

    changes?: WriteSetChange[]

    The changes the transaction would make to Move state, in priority order (the signers' resources first).

    prior_values?: Record<string, WriteSetChange[] | null>

    The value each state key in changes held before the transaction, keyed by state_key_hash: the write_* changes that would write it, or null when the key held no value.

    omitted?: OmittedStateKey[]

    The state keys left out of changes and prior_values, in priority order, at most the node's listing bound.

    omitted_counts?: OmittedStateKeyCounts

    The number of state keys of each kind left out, including any beyond those omitted lists.

    changes_truncated?: boolean

    true exactly when a state key was left out.