@dynamic-labs/sdk-react-core
Version:
A React SDK for implementing wallet web3 authentication and authorization to your website.
10 lines (9 loc) • 484 B
TypeScript
import { GetAddressOpts, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
export type ConnectAndSignProps = {
getAddressOpts?: GetAddressOpts;
walletConnector: InternalWalletConnector;
};
export declare const useConnectAndSign: ({ shouldUpdateWallets, shouldCallCallback, }?: {
shouldUpdateWallets?: boolean | undefined;
shouldCallCallback?: boolean | undefined;
}) => ({ walletConnector, getAddressOpts, }: ConnectAndSignProps) => Promise<void>;