UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

28 lines (27 loc) 905 B
import { ECPairInterface } from 'ecpair'; import { Network } from '@btc-vision/bitcoin'; import { Address } from './Address.js'; export declare class Wallet { readonly network: Network; private readonly _keypair; private readonly _p2wpkh; private readonly _p2tr; private readonly _legacy; private readonly _segwitLegacy; private readonly _bufferPubKey; private readonly _tweakedKey; private readonly _address; constructor(privateKeyOrWif: string, network?: Network); get address(): Address; get tweakedPubKeyKey(): Buffer; get keypair(): ECPairInterface; get p2wpkh(): string; get p2tr(): string; get legacy(): string; get addresses(): string[]; get segwitLegacy(): string; get publicKey(): Buffer; get xOnly(): Buffer; static fromWif(wif: string, network?: Network): Wallet; static new(network?: Network): Wallet; }