UNPKG

@okxweb3/coin-bitcoin

Version:

@okxweb3/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals

15 lines (14 loc) 1.25 kB
/// <reference types="node" /> import { KeyValue, PsbtGlobal, PsbtGlobalUpdate, PsbtInput, PsbtInputUpdate, PsbtOutput, PsbtOutputUpdate } from './interfaces'; export declare function checkForInput(inputs: PsbtInput[], inputIndex: number): PsbtInput; export declare function checkForOutput(outputs: PsbtOutput[], outputIndex: number): PsbtOutput; export declare function checkHasKey(checkKeyVal: KeyValue, keyVals: KeyValue[] | undefined, enumLength: number): void; export declare function getEnumLength(myenum: any): number; export declare function inputCheckUncleanFinalized(inputIndex: number, input: PsbtInput): void; export declare const updateGlobal: (updateData: PsbtGlobalUpdate, mainData: PsbtGlobal) => void; export declare const updateInput: (updateData: PsbtInputUpdate, mainData: PsbtInput) => void; export declare const updateOutput: (updateData: PsbtOutputUpdate, mainData: PsbtOutput) => void; export declare function addInputAttributes(inputs: PsbtInput[], data: any): void; export declare function addOutputAttributes(outputs: PsbtOutput[], data: any): void; export declare function defaultVersionSetter(version: number, txBuf: Buffer): Buffer; export declare function defaultLocktimeSetter(locktime: number, txBuf: Buffer): Buffer;