BlockContext
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.16.0
@midnight-ntwrk/compact-runtime / BlockContext
Type Alias: BlockContext
type BlockContext = {
lastBlockTime: bigint;
parentBlockHash: string;
secondsSinceEpoch: bigint;
secondsSinceEpochErr: number;
};
CallContext에 전달되는 블록 관련 컨텍스트 정보입니다.
Properties
lastBlockTime
lastBlockTime: bigint;
이전 블록의 secondsSinceEpoch
parentBlockHash
parentBlockHash: string;
이 트랜잭션 이전 블록의 해시로, 16진수 인코딩된 문자열
secondsSinceEpoch
secondsSinceEpoch: bigint;
경과한 UNIX 에포크 이후 초
secondsSinceEpochErr
secondsSinceEpochErr: number;
secondsSinceEpoch에서 발생할 수 있는 최대 오차로, 양의 초 단위 값