UNPKG

scrypt-ts

Version:

A toolset for building sCrypt smart contract applications on Bitcoin SV network written in typescript.

20 lines (19 loc) 785 B
import { bsv } from "scryptlib"; import { Provider, TransactionResponse, UtxoQueryOptions } from "../bsv/abstract-provider"; export declare class ScryptProvider extends Provider { private _isConnected; private network; constructor(); isConnected(): boolean; connect(): Promise<this>; updateNetwork(newwork: bsv.Networks.Network): void; getNetwork(): bsv.Networks.Network; getFeePerKb(): Promise<number>; sendRawTransaction(rawTxHex: string): Promise<string>; getTransaction(txHash: string): Promise<TransactionResponse>; listUnspent(address: bsv.Address, options?: UtxoQueryOptions): Promise<bsv.Transaction.IUnspentOutput[]>; getBalance(address: bsv.Address): Promise<{ confirmed: number; unconfirmed: number; }>; }