onOtpVerificationResult
so you can easily listen to success and failure for email and sms.
The signature of this new callback looks like the following
connectWithEmail
and verifyOneTimePassword
functions. It supports both Dynamic native login and our Magic integration.
useDynamicContext
and allows you to trigger the link new wallet method programmatically.
initialAuthenticationMode
prop on DynamicContextProvider
but this would be set in stone once the app loads. Now you can also set it programmatically via the setAuthMode
method on useDynamicContext
.Switch to sdk-react-core
Add walletConnectors
Viem as default
sdk-react
which came with all of the possible WalletConnectors pre-bundled. The second was by installing sdk-react-core
and then adding WalletConnectors yourself alongside it.
While the first was helpful in getting started, the general feedback was that the bundle size was too large. So we’ve decided to remove the sdk-react
package and make sdk-react-core
the main way of installing the SDK.
To get started in this way, you should uninstall sdk-react
and install sdk-react-core
instead. If you’re already using sdk-react-core
, it’s worth upgrading it to the latest version.
sdk-react-core
doesn’t come with any WalletConnectors pre-bundled.
There are also no more all
packages available.
You should install them according to the table below.
Package Name | Chain | WalletConnector to include |
---|---|---|
@dynamic-labs/ethereum | EVM | EthereumWalletConnectors |
@dynamic-labs/algorand | ALGO | AlgorandWalletConnectors |
@dynamic-labs/solana | SOL | SolanaWalletConnectors |
@dynamic-labs/flow | FLOW | FlowWalletConnectors |
@dynamic-labs/starknet | STARK | StarknetWalletConnectors |
@dynamic-labs/cosmos | COSMOS | CosmosWalletConnectors |
Package Name | Which Wallets | WalletConnector to include |
---|---|---|
@dynamic-labs/magic | magic | MagicWalletConnectors |
@dynamic-labs/blocto-evm | blocto | BloctoEvmWalletConnectors |
ethereum-all
package
which is now deprecated, please note that you will no longer get Magic &
Blocto with the ethereum
package - use the above packages instead.@dynamic-labs/ethers-v6
instead of @dynamic-labs/ethers-v5
.V0.18 | V0.19 |
---|---|
getWeb3Provider() | getPublicClient() |
getRpcProvider() | getWalletClient() |
onConnectSuccess
callback to onConnect
.
V0.18 | V0.19 |
---|---|
<WalletIcon walletName={normalizeWalletName(walletConnector.name)} | <WalletIcon walletKey={walletConnector.key} |
DynamicContextProvider
. If you’re passing displayTermsOfService
to DynamicContextProvider
, you should update your code like so:
chainName
on EvmNetwork is deprecated in favor of name
. If you’re passing evmNetworks
to DynamicContextProvider
or DynamicWagmiConnector
, you should update your code like so:
chainName
is a deprecated field on the EVMchain (and will be removed on v18),
but if you pass a custom EVM network you will need to change to name
.multiWallet
prop on DynamicContextProvider is deprecated in favor of the Dashboard settings. See here for more info.verifiedCredentials
instead of blockchainAccounts
. blockChainAccounts
was removed from the user’s object.