opnet
Version:
The perfect library for building Bitcoin-based applications.
33 lines (32 loc) • 1.33 kB
TypeScript
import { Network } from '@btc-vision/bitcoin';
import { Address } from '@btc-vision/transaction';
import { BigNumberish } from '../common/CommonTypes.js';
import { OPNetTransactionTypes } from '../interfaces/opnet/OPNetTransactionTypes.js';
import { TransactionBase } from '../transactions/Transaction.js';
import { BlockHeaderChecksumProof, IBlock } from './interfaces/IBlock.js';
export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | 'deployments'> {
readonly height: BigNumberish;
readonly hash: string;
readonly previousBlockHash: string;
readonly previousBlockChecksum: string;
readonly bits: string;
readonly nonce: number;
readonly version: number;
readonly size: number;
readonly txCount: number;
readonly weight: number;
readonly strippedSize: number;
readonly time: number;
readonly medianTime: number;
readonly checksumRoot: string;
readonly merkleRoot: string;
readonly storageRoot: string;
readonly receiptRoot: string;
readonly ema: bigint;
readonly baseGas: bigint;
readonly gasUsed: bigint;
readonly checksumProofs: BlockHeaderChecksumProof;
readonly transactions: TransactionBase<OPNetTransactionTypes>[];
readonly deployments: Address[];
constructor(block: IBlock, network: Network);
}