bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
27 lines • 1.03 kB
TypeScript
import type { MarketError } from "../../market/types/market.js";
import type { WalletUserExtension } from "../types/extended-user.js";
import type { SendResult } from "../types/wallet.js";
export interface UseSendBSVOptions {
feeRate?: number;
app?: string;
walletData?: WalletUserExtension;
onSuccess?: (result: SendResult) => void;
onError?: (error: MarketError) => void;
}
export interface SendBSVParams {
toAddress: string;
satoshis: number;
message?: string;
}
export declare function useSendBSV(options?: UseSendBSVOptions): {
sendBSV: import("@tanstack/react-query").UseMutateFunction<SendResult, MarketError, SendBSVParams, unknown>;
sendBSVAsync: import("@tanstack/react-query").UseMutateAsyncFunction<SendResult, MarketError, SendBSVParams, unknown>;
isLoading: boolean;
isError: boolean;
isSuccess: boolean;
error: MarketError | null;
data: SendResult | undefined;
estimatedFee: number;
reset: () => void;
};
//# sourceMappingURL=useSendBSV.d.ts.map