Learn how to create and manage embedded wallets in your React application using Turnkey’s Embedded Wallet Kit.
createWallet
function from the useTurnkey
hook. This will create a new wallet within the end-user’s sub-organization with one Ethereum and one Solana wallet account.
wallets
array in the useTurnkey
hook, which contains all embedded wallets associated with the sub-organization and all linked external wallets. This array is updated automatically when wallets are created, updated or removed.
refreshWallets
function from the useTurnkey
hook.
accounts
parameter.
curve
, pathFormat
, path
, and addressFormat
.
createWalletAccount
function to add more accounts to an existing wallet.
handleImportWallet
and handleExportWallet
functions. These functions open up UI modals that allows users to export or import wallets through a secure iframe.
You can learn more about importing using an iframe and exporting using an iframe before continuing.