UNPKG

btc-wallet

Version:

BTC Wallet is a toolkit that enables Bitcoin usage on the NEAR blockchain through the Satoshi protocol.

20 lines (19 loc) 752 B
import React from 'react'; export declare function BtcWalletSelectorContextProvider({ children, }: { children: React.ReactNode; autoConnect?: boolean; }): import("react/jsx-runtime").JSX.Element; export declare function useBtcWalletSelector(): { login: () => Promise<string | null>; autoConnect: () => Promise<string | null>; logout: () => void; account: string; getPublicKey: () => Promise<string>; signMessage: (msg: string) => Promise<string>; getContext: () => any; getNetwork: () => Promise<"livenet" | "testnet">; switchNetwork: (network: "livenet" | "testnet") => Promise<void>; sendBitcoin: (toAddress: string, satoshis: number, options?: { feeRate: number; }) => Promise<string>; };