UNPKG

ordapi

Version:
45 lines (44 loc) 2.37 kB
import { OutputType } from './types'; declare const api: { readonly getAddressInfo: (address: string) => string; readonly getBlockInfo: (heightOrHash: number | string) => string; readonly getBlockCount: "/blockcount"; readonly getBlockHashByHeight: (height: number) => string; readonly getBlockHash: "/blockhash"; readonly getBlockHeight: "/blockheight"; readonly getBlocksLatest: "/blocks"; readonly getBlockTime: "/blocktime"; readonly getInscriptionInfo: (id: string) => string; readonly getChild: (id: string, child: number) => string; readonly getInscriptions: "/inscriptions"; readonly getInscriptionsByIds: "/inscriptions"; readonly getInscriptionsByPage: (page: number) => string; readonly getInscriptionsByBlock: (height: number) => string; readonly getOutput: (outpoint: string) => string; readonly getOutputs: "/outputs"; readonly getOutputsByAddress: (address: string, type?: OutputType) => string; readonly getRune: (name: string) => string; readonly getRunesLatest: "/runes"; readonly getRunesByPage: (page: number) => string; readonly getSat: (number: number) => string; readonly getTransaction: (txId: string) => string; readonly getServerStatus: "/status"; readonly getBlockHashByHeightRecursive: (height: number) => string; readonly getBlockHashRecursive: "/r/blockhash"; readonly getBlockHeightRecursive: "/r/blockheight"; readonly getBlockInfoRecursive: (heightOrHash: number | string) => string; readonly getBlockTimeRecursive: "/r/blocktime"; readonly getChildren: (id: string) => string; readonly getChildrenByPage: (id: string, page: number) => string; readonly getChildrenInfo: (id: string) => string; readonly getChildrenInfoByPage: (id: string, page: number) => string; readonly getInscriptionRecursive: (id: string) => string; readonly getParents: (id: string) => string; readonly getParentsByPage: (id: string, page: number) => string; readonly getInscriptionsOnSat: (number: number) => string; readonly getInscriptionsOnSatByPage: (number: number, page: number) => string; readonly getInscriptionOnSat: (number: number, index: number) => string; readonly getTransactionHex: (txid: string) => string; readonly getOutputAssets: (outpoint: string) => string; }; export default api;