UNPKG

@btc-vision/transaction

Version:

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

18 lines (17 loc) 722 B
import { Network } from '@btc-vision/bitcoin'; export declare enum AddressTypes { P2PKH = "P2PKH", P2OP = "P2OP", P2SH_OR_P2SH_P2WPKH = "P2SH_OR_P2SH-P2WPKH", P2PK = "P2PK", P2TR = "P2TR", P2WPKH = "P2WPKH" } export declare class AddressVerificator { static isValidP2TRAddress(inAddress: string, network: Network): boolean; static isP2WPKHAddress(inAddress: string, network: Network): boolean; static isP2PKHOrP2SH(addy: string, network: Network): boolean; static isValidPublicKey(input: string, network: Network): boolean; static requireRedeemScript(addy: string, network: Network): boolean; static detectAddressType(addy: string, network: Network): AddressTypes | null; }