@bronlabs/intents-sdk
Version:
SDK for Intents DeFi smart contracts
16 lines (15 loc) • 685 B
TypeScript
import { Network, TransactionData } from './index.js';
export declare class BtcNetwork implements Network {
private readonly rpcUrl;
private readonly confirmations;
private readonly nativeAssetDecimals;
readonly retryDelay: number;
constructor(rpcUrl: string, confirmations?: number);
getDecimals(tokenAddress: string): Promise<number>;
getTxData(txHash: string, tokenAddress: string, recipientAddress: string): Promise<TransactionData | undefined>;
transfer(privateKey: string, to: string, value: bigint, tokenAddress: string): Promise<string>;
private getFeeRate;
private getUtxos;
private getAddressFromPrivateKey;
private rpcCall;
}