UNPKG

@particle-network/btc-connectkit

Version:

First Account Abstraction Protocol on Bitcoin

9 lines (8 loc) 707 B
import type { SmartAccount, UserOp } from '@particle-network/aa'; import type { AccountInfo } from '../types/accountInfo'; export declare const pubKeyToEVMAddress: (pubKey: string) => string; export declare const convertSignature: (signature: string) => string; export declare function caculateNativeFee(userOp: UserOp): bigint; export declare const getBTCAAAddress: (smartAccount: SmartAccount, btcAddress: string, name: string, version: string) => Promise<string>; export declare const getBTCAccountInfo: (smartAccount: SmartAccount, btcAddress: string, name: string, version: string) => Promise<AccountInfo>; export declare const formatToken: (amount: bigint, decimals?: number) => number | "<0.000001";