@okxweb3/coin-bitcoin
Version:
@ok/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.
13 lines (12 loc) • 644 B
TypeScript
/// <reference types="node" />
import { KeyValue, Transaction, TransactionFromBuffer } from '../interfaces';
import { PsbtAttributes } from './index';
export declare function psbtFromBuffer(buffer: Buffer, txGetter: TransactionFromBuffer): PsbtAttributes;
interface PsbtFromKeyValsArg {
globalMapKeyVals: KeyValue[];
inputKeyVals: KeyValue[][];
outputKeyVals: KeyValue[][];
}
export declare function checkKeyBuffer(type: string, keyBuf: Buffer, keyNum: number): void;
export declare function psbtFromKeyVals(unsignedTx: Transaction, { globalMapKeyVals, inputKeyVals, outputKeyVals }: PsbtFromKeyValsArg): PsbtAttributes;
export {};