@helium/http
Version:
HTTP library for interacting with the Helium blockchain API
23 lines • 666 B
TypeScript
import type Client from '../Client';
import Transactions from '../resources/Transactions';
import DataModel from './DataModel';
export interface HTTPBlockObject {
transaction_count?: number;
time?: number;
prev_hash?: string;
height?: number;
hash?: string;
}
export type BlockData = Omit<Block, 'client'>;
export default class Block extends DataModel {
private client;
height?: number;
transactionCount?: number;
time?: number;
prevHash?: string;
hash?: string;
constructor(client: Client, block: HTTPBlockObject);
get transactions(): Transactions;
get data(): BlockData;
}
//# sourceMappingURL=Block.d.ts.map