createWallet
function on the user object.
embeddedWallet()
wagmi connector alongside other connectors like Metamask, so your code can switch between Civic embedded wallets and the user’s other installed wallets. Currently those wallets cannot be linked to the Civic account, they are separate.Neither Civic nor your app ever has access to the wallets’ private keys.userHasWallet
type guard.
embeddedWallet()
in your Wagmi configuration as shown below:
useAutoConnect()
hook:
connect
method.
useBalance
: Retrieve the wallet balance.
useAccount
: Access account details.
useSendTransaction
: Send transactions from the wallet.
useSignMessage
: Sign messages with the wallet.
CivicAuthProvider
component. Here is an example:
initialChain
property to define the chain you want to start using.