@dynamic-labs/sdk-react-core
Version:
A React SDK for implementing wallet web3 authentication and authorization to your website.
20 lines (19 loc) • 868 B
TypeScript
import { EmbeddedWalletChainEnum } from '@dynamic-labs/sdk-api-core';
import { WebAuthnAttestation } from '@dynamic-labs/wallet-connector-core';
import { WalletOption } from '../../../shared';
type MutationProps = {
environmentId: string;
walletConnectorOptions: WalletOption[];
withAuthenticator: boolean;
options?: {
webAuthnAttestation: WebAuthnAttestation;
};
chains?: EmbeddedWalletChainEnum[];
};
export declare const getEmbeddedChain: (chainName: string) => EmbeddedWalletChainEnum.Evm | EmbeddedWalletChainEnum.Sol | EmbeddedWalletChainEnum.Btc;
export declare const useCreateDynamicEmbeddedWalletMutation: () => {
createDynamicEmbeddedWalletMutation: ({ environmentId, walletConnectorOptions, withAuthenticator, options, chains, }: MutationProps) => Promise<void>;
error: unknown;
isLoading: boolean;
};
export {};