Dynamic’s React Context which is set via DynamicContextProvider
AccountSwitchState
This enum type specifies the current state of switching or linking wallets in a multi-wallet enabled environment. This can be idle, linking_new_wallet, switching_primary, primary_not_connected
AuthModeType
This enum type specifies whether the SDK’s users will need to sign to authenticate and prove ownership of their account, or just connect is enough. This can be connect-only or connect-and-sign
AwaitingSignatureState
This enum type specifies the current state while waiting for a signature of a new wallet to link in a multi-wallet enabled environment. This can be idle, linking_new_wallet, transferring_wallet
() => Promise
A helper-method to log-out the currently authenticated user account.
(walletId: string) => Promise
Helper function to unlink a wallet given a wallet ID from the user account.
boolean
Whether any verifications are in progress for the current user (ex. connect, sign and email login verifications).
boolean
Returns true when the SDK is looking for the network of the primary wallet’s wallet connector.
MultiWalletWidgetState
This enum type specifies the current state of the widget in a multi-wallet enabled environment. This can be idle, awaiting_account_switch, awaiting_connection, awaiting_signature, detected_known_secondary_wallet, detected_new_wallet
number | undefined
This represents the current network selected for the primary wallet
NetworkConfigurationMap | undefined
This contains the current network configurations for various EVM and Solana chains. These information includes chain ID, RPC URLs, and other important information.
Wallet | null
An instance of a Wallet that represents the most recent connected Wallet.
string
URI for the QR code to scan in the current modal.
string | undefined
URL used for redirecting back after connecting with farcaster
DynamicRPCProviders
List of RPC providers and their settings to communicate with web3 services. These providers are configured on Dynamic’s dashboard.
boolean
Whether the sdk’s data is done loading — useful for avoiding stale data flashes by not rendering until the sdk is done loading.
number
The selected tab index when using the wallet list view tabs feature
Dispatch<SetStateAction<AuthModeType>>
Sets the current authentication mode of branded wallets (“connect-and-sign” or “connect-only”). Note: does nothing if the user is already logged in. You might also want to toggle the initialAuthenticationMode prop.
MultiWalletWidgetStateSetter
It controls the intended state for a multi-wallet enabled environment.
Dispatch<SetStateAction<number>>
Sets the selected tab index when using the wallet list view tabs feature
Dispatch<SetStateAction>
It controls whether or not to display the DynamicAuthFlow SDK component.
Dispatch<SetStateAction>
It controls whether or not to display a QR code modal.
boolean
The value set by setShowAuthFlow, it controls whether or not to display the DynamicAuthFlow SDK component.
boolean
Value set by setShowQrcodeModal, it controls whether or not to display a QR code modal.
UserProfile | null
The user object of the currently authenticated user.
UserProfile | undefined
Present if the user is authenticated but hasn’t finished onboarding (i.e. mandatory info capture/MFA), undefined if the user hasn’t started the login/signup process or has already fully completed it.
linkedWallets
, secondaryWallets
and connectedWallets
in
previous versions, check out the new
useUserWallets hook.setShowAuthFlow
- use it to start signature request from userprimaryWallet
- use it to make operations on the currently active wallethandleLogOut
- use it to log out currently logged in userisVerificationInProgress
- use it along with onAuthFlowClose to tell whether it was manually closed or closed due to a verification process