Context provided to script execution. Contains deterministic values only.

interface ScriptContext {
    args: unknown[];
    blockHeight: number;
    caller: string;
    method: string;
    prevBlockHash: string;
    tokenMetadata: Readonly<TokenMetadata>;
    tokenState: Readonly<TokenState>;
    txTimestamp: number;
}

Properties

args: unknown[]
blockHeight: number
caller: string
method: string
prevBlockHash: string
tokenMetadata: Readonly<TokenMetadata>
tokenState: Readonly<TokenState>
txTimestamp: number