UNPKG

infoblock

Version:

A typed wrapper of the blockchain.info API

13 lines (12 loc) 467 B
import Transaction from "./Transaction"; import { Hash } from "./types"; export declare class Block { hash: string; previousBlockHash: Hash; merkleTreeRoot: Hash; time: Date; height: number; transactions: Transaction[]; constructor(hash: string, timestamp: number, height: number, prevBlock: Hash, mrklTree: Hash, transactions?: Transaction[]); static constructFromObj({ hash, time, height, prev_block, mrkl_root, tx }: any): Block; }