@pgchain/blockchain-libs
Version:
PGWallet Blockchain Libs
17 lines (16 loc) • 801 B
TypeScript
import { RestfulRequest } from '../../../basic/request/restful';
import { AddressInfo, ClientInfo, FeePricePerUnit, TransactionStatus } from '../../../types/provider';
import { SimpleClient } from '../../abc';
declare class BlockBook extends SimpleClient {
readonly restful: RestfulRequest;
constructor(url: string);
getInfo(): Promise<ClientInfo>;
getAccount(xpub: string, params: Record<string, any>): Promise<any>;
getAddress(address: string): Promise<AddressInfo>;
estimateFee(waitingBlock: number): Promise<number>;
getFeePricePerUnit(): Promise<FeePricePerUnit>;
getTransactionStatus(txid: string): Promise<TransactionStatus>;
getRawTransaction(txid: string): Promise<string>;
broadcastTransaction(rawTx: string): Promise<string>;
}
export { BlockBook };