Skip to main content

RunningCost

For the complete documentation index, see llms.txt

@midnight-ntwrk/onchain-runtime v3.0.0


@midnight-ntwrk/onchain-runtime / RunningCost

Type Alias: RunningCost

type RunningCost: {
bytesDeleted: bigint;
bytesWritten: bigint;
computeTime: bigint;
readTime: bigint;
};

A running tally of synthetic resource costs.

Type declaration​

bytesDeleted​

bytesDeleted: bigint;

The number of (modelled) bytes deleted.

bytesWritten​

bytesWritten: bigint;

The number of (modelled) bytes written.

computeTime​

computeTime: bigint;

The amount of (modelled) time spent in single-threaded compute, measured in picoseconds.

readTime​

readTime: bigint;

The amount of (modelled) time spent reading from disk, measured in picoseconds.