/** * Satstream API * Satstream API * * OpenAPI spec version: 1.0 * Contact: team@satstream.io * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { GetBlockCountResponse } from '../models'; import { GetBlockDecodedResponse } from '../models'; import { GetBlockHashByHeightResponse } from '../models'; import { GetBlockHexResponse } from '../models'; import { GetBlockPrevoutResponse } from '../models'; import { GetBlockResponse } from '../models'; import { GetBlockStatsRequest } from '../models'; import { GetBlockStatsResponse } from '../models'; import { GetBlockSummaryResponse } from '../models'; import { GetBlockchainInfoResponse } from '../models'; import { GetBlocksResponse } from '../models'; import { GetLatestBlockHashResponse } from '../models'; import { GetLatestBlockHeightResponse } from '../models'; import { GetLatestBlockTimeResponse } from '../models'; /** * BlocksApi - axios parameter creator * @export */ export declare const BlocksApiAxiosParamCreator: (configuration?: Configuration) => { /** * Returns the height of the latest block * @summary Get the height of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockCount: (options?: AxiosRequestConfig) => Promise; /** * Get block by hash or height as a decoded object * @summary Get block by hash or height (verbosity 2) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockDecoded: (identifier: string, options?: AxiosRequestConfig) => Promise; /** * Returns blockhash of specified block. * @summary Returns blockhash of specified block. * @param {string} blockHeight Block Height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockHashByHeight: (blockHeight: string, options?: AxiosRequestConfig) => Promise; /** * Get block by hash or height as a raw hex string * @summary Get block by hash or height (verbosity 0) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockHex: (identifier: string, options?: AxiosRequestConfig) => Promise; /** * Get detailed information about a specific block by hash or height * @summary Get block info by hash or height * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockInfo: (identifier: string, options?: AxiosRequestConfig) => Promise; /** * Get block by hash or height with prevout information * @summary Get block by hash or height (verbosity 3) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockPrevout: (identifier: string, options?: AxiosRequestConfig) => Promise; /** * Computes per block statistics for a given window * @summary Get block stats * @param {GetBlockStatsRequest} body Block stats request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockStats: (body: GetBlockStatsRequest, options?: AxiosRequestConfig) => Promise; /** * Get block by hash or height as a summary object * @summary Get block by hash or height (verbosity 1) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockSummary: (identifier: string, options?: AxiosRequestConfig) => Promise; /** * Returns an object containing various state info regarding blockchain processing * @summary Get blockchain information * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockchainInfo: (options?: AxiosRequestConfig) => Promise; /** * Returns the latest block height, last 100 block hashes, and featured inscriptions * @summary Returns the latest block height, last 100 block hashes, and featured inscriptions * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlocks: (options?: AxiosRequestConfig) => Promise; /** * Returns the height of the latest block. * @summary Returns the height of the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlockHeight: (options?: AxiosRequestConfig) => Promise; /** * Returns blockhash for the latest block. * @summary Returns blockhash for the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlockhash: (options?: AxiosRequestConfig) => Promise; /** * Returns the UNIX timestamp of when the latest block was mined * @summary Get the timestamp of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlocktime: (options?: AxiosRequestConfig) => Promise; }; /** * BlocksApi - functional programming interface * @export */ export declare const BlocksApiFp: (configuration?: Configuration) => { /** * Returns the height of the latest block * @summary Get the height of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get block by hash or height as a decoded object * @summary Get block by hash or height (verbosity 2) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockDecoded(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns blockhash of specified block. * @summary Returns blockhash of specified block. * @param {string} blockHeight Block Height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockHashByHeight(blockHeight: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get block by hash or height as a raw hex string * @summary Get block by hash or height (verbosity 0) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockHex(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get detailed information about a specific block by hash or height * @summary Get block info by hash or height * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockInfo(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get block by hash or height with prevout information * @summary Get block by hash or height (verbosity 3) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockPrevout(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Computes per block statistics for a given window * @summary Get block stats * @param {GetBlockStatsRequest} body Block stats request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockStats(body: GetBlockStatsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get block by hash or height as a summary object * @summary Get block by hash or height (verbosity 1) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockSummary(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns an object containing various state info regarding blockchain processing * @summary Get blockchain information * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockchainInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns the latest block height, last 100 block hashes, and featured inscriptions * @summary Returns the latest block height, last 100 block hashes, and featured inscriptions * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlocks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns the height of the latest block. * @summary Returns the height of the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlockHeight(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns blockhash for the latest block. * @summary Returns blockhash for the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlockhash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns the UNIX timestamp of when the latest block was mined * @summary Get the timestamp of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlocktime(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; }; /** * BlocksApi - factory interface * @export */ export declare const BlocksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Returns the height of the latest block * @summary Get the height of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockCount(options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height as a decoded object * @summary Get block by hash or height (verbosity 2) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockDecoded(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Returns blockhash of specified block. * @summary Returns blockhash of specified block. * @param {string} blockHeight Block Height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockHashByHeight(blockHeight: string, options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height as a raw hex string * @summary Get block by hash or height (verbosity 0) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockHex(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Get detailed information about a specific block by hash or height * @summary Get block info by hash or height * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockInfo(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height with prevout information * @summary Get block by hash or height (verbosity 3) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockPrevout(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Computes per block statistics for a given window * @summary Get block stats * @param {GetBlockStatsRequest} body Block stats request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockStats(body: GetBlockStatsRequest, options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height as a summary object * @summary Get block by hash or height (verbosity 1) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockSummary(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Returns an object containing various state info regarding blockchain processing * @summary Get blockchain information * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlockchainInfo(options?: AxiosRequestConfig): Promise>; /** * Returns the latest block height, last 100 block hashes, and featured inscriptions * @summary Returns the latest block height, last 100 block hashes, and featured inscriptions * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBlocks(options?: AxiosRequestConfig): Promise>; /** * Returns the height of the latest block. * @summary Returns the height of the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlockHeight(options?: AxiosRequestConfig): Promise>; /** * Returns blockhash for the latest block. * @summary Returns blockhash for the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlockhash(options?: AxiosRequestConfig): Promise>; /** * Returns the UNIX timestamp of when the latest block was mined * @summary Get the timestamp of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLatestBlocktime(options?: AxiosRequestConfig): Promise>; }; /** * BlocksApi - object-oriented interface * @export * @class BlocksApi * @extends {BaseAPI} */ export declare class BlocksApi extends BaseAPI { /** * Returns the height of the latest block * @summary Get the height of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockCount(options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height as a decoded object * @summary Get block by hash or height (verbosity 2) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockDecoded(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Returns blockhash of specified block. * @summary Returns blockhash of specified block. * @param {string} blockHeight Block Height * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockHashByHeight(blockHeight: string, options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height as a raw hex string * @summary Get block by hash or height (verbosity 0) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockHex(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Get detailed information about a specific block by hash or height * @summary Get block info by hash or height * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockInfo(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height with prevout information * @summary Get block by hash or height (verbosity 3) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockPrevout(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Computes per block statistics for a given window * @summary Get block stats * @param {GetBlockStatsRequest} body Block stats request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockStats(body: GetBlockStatsRequest, options?: AxiosRequestConfig): Promise>; /** * Get block by hash or height as a summary object * @summary Get block by hash or height (verbosity 1) * @param {string} identifier Block hash or height * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockSummary(identifier: string, options?: AxiosRequestConfig): Promise>; /** * Returns an object containing various state info regarding blockchain processing * @summary Get blockchain information * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlockchainInfo(options?: AxiosRequestConfig): Promise>; /** * Returns the latest block height, last 100 block hashes, and featured inscriptions * @summary Returns the latest block height, last 100 block hashes, and featured inscriptions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getBlocks(options?: AxiosRequestConfig): Promise>; /** * Returns the height of the latest block. * @summary Returns the height of the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getLatestBlockHeight(options?: AxiosRequestConfig): Promise>; /** * Returns blockhash for the latest block. * @summary Returns blockhash for the latest block. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getLatestBlockhash(options?: AxiosRequestConfig): Promise>; /** * Returns the UNIX timestamp of when the latest block was mined * @summary Get the timestamp of the latest block * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BlocksApi */ getLatestBlocktime(options?: AxiosRequestConfig): Promise>; }