import { TLong } from '../../interface'; import { TransactionFromNode, WithApiMixin } from '@waves/ts-types'; /** * GET /blocks/headers/seq/{from}/{to} * Get block headers at specified heights * @param base * @param from * @param to */ export declare function fetchHeadersSeq(base: string, from: number, to: number, options?: RequestInit): Promise>; /** * GET /blocks/headers/last * Last block header * @param base */ export declare function fetchHeadersLast(base: string, options?: RequestInit): Promise; /** * GET /blocks/height/{id} * Height of a block by its id * @param base * @param id */ export declare function fetchHeightById(base: string, id: string): Promise<{ height: number; }>; /** * GET /blocks/headers/at/{height} * Block header at height * @param base * @param height */ export declare function fetchHeadersAt(base: string, height: number, options?: RequestInit): Promise; /** * GET /blocks/headers/{id} * Get block at specified height * @param base * @param height */ export declare function fetchHeadersById(base: string, id: string, options?: RequestInit): Promise; /** * GET /blocks/at/{height} * Get block at specified height * @param base * @param height */ export declare function fetchBlockAt(base: string, height: number, options?: RequestInit): Promise; /** * GET /blocks/seq/{from}/{to} * Block range * @param base * @param from * @param to */ export declare function fetchSeq(base: string, from: number, to: number, options?: RequestInit): Promise>; /** * GET /blocks/{id} * Get block by its id * @param base * @param id */ export declare function fetchBlockById(base: string, id: string, options?: RequestInit): Promise; /** * GET /blocks/first * Get genesis block * @param base */ export declare function fetchFirst(base: string, options?: RequestInit): Promise; /** * /blocks/address/{address}/{from}/{to} * Get list of blocks generated by specified address * @param base * @param address * @param from * @param to */ export declare function fetchBlocksByAddress(base: string, address: string, from: number, to: number, options?: RequestInit): Promise>; /** * GET /blocks/last * Last block * @param base */ export declare function fetchLast(base: string, options?: RequestInit): Promise; /** * GET /blocks/delay/{id}/{blockNum} * Average delay in milliseconds between last blockNum blocks starting from block with id * @param base * @param id * @param blockNum */ export declare function fetchDelay(base: string, id: string, blockNum: number): Promise<{ delay: number; }>; /** * GET /blocks/height * @param base */ export declare function fetchHeight(base: string): Promise<{ height: number; }>; /** * GET /blocks/heightByTimestamp * @param base */ export declare function fetchHeightByTimestamp(base: string, timestamp: number, options?: RequestInit): Promise<{ height: number; }>; export interface IBlockHeader { id: string; blocksize: number; reward: TLong; signature: string; VRF: string; generator: string; generatorPublicKey: string; version: number; reference: string; features: Array; totalFee: TLong; desiredReward: number; transactionCount: number; timestamp: number; height: number; 'nxt-consensus': { 'base-target': number; 'generation-signature': string; }; } export interface IBlock extends IBlockHeader { fee: TLong; transactions: Array; }