UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

54 lines 1.4 kB
import type { AuthUser } from "../../../lib/types.js"; export interface WalletUserExtension { paymentKey?: string; ordinalKey?: string; fundingAddress?: string; ordinalAddress?: string; balance?: { confirmed: number; unconfirmed: number; }; utxos?: Array<{ txid: string; vout: number; satoshis: number; script?: string; }>; tokenUtxos?: Array<{ txid: string; vout: number; satoshis: number; script?: string; id: string; amount: string; amt?: string; }>; } export type WalletUser = AuthUser & Partial<WalletUserExtension>; export declare function hasWalletCapabilities(user: AuthUser | WalletUser): user is WalletUser & WalletUserExtension; export declare function getWalletProps(user: AuthUser | WalletUser): { paymentKey: string | undefined; ordinalKey: string | undefined; fundingAddress: string; ordinalAddress: string; balance: { confirmed: number; unconfirmed: number; }; utxos: { script: string; txid: string; vout: number; satoshis: number; }[]; tokenUtxos: { txid: string; vout: number; script: string; satoshis: 1; id: string; amount: string; amt: string; }[]; }; //# sourceMappingURL=extended-user.d.ts.map