@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
23 lines (22 loc) • 1.06 kB
TypeScript
import { SignTxParams } from "@okxweb3/coin-base";
import { BtcWallet } from "./BtcWallet";
import * as bitcoin from "../index";
import { utxoTx } from "../index";
export declare const ErrCodeLessRunesMainAmt = 2010300;
export declare const ErrCodeOpreturnExceeds = 2010301;
export declare const ErrCodeRuneIdNotStandard = 2010302;
export declare const ErrCodeMultipleRuneId = 2010303;
export declare class RuneMainWallet extends BtcWallet {
convert2RuneTx(paramData: any): utxoTx;
getMockMinRuneTx(paramData: any, curRuneInfo: any): utxoTx;
getMinRuneTx(paramData: any, curRuneInfo: any, curInput: any, curOutput: any): utxoTx;
signTransaction(param: SignTxParams): Promise<any>;
private getRuneMainOpReturnOutput;
estimateFee(param: SignTxParams): Promise<any>;
convert2RuneTxSerialMint(paramData: any, outputAmount: number): utxoTx;
convert2RuneTxPsbt(paramData: any): utxoTx;
buildPsbt(param: SignTxParams): Promise<any>;
}
export declare class RuneMainTestWallet extends RuneMainWallet {
network(): bitcoin.Network;
}