@coinbase/cdp-wagmi
. You’ll learn how to install the package, set up the provider, and render your first component.
http://localhost:3000
CDPEmbeddedWalletConnector
.
CDPEmbeddedWalletConnector
provides the necessary context Wagmi to work correctly with
the CDP Frontend SDK. The providerConfig
must be provided and is responsible for
configuring the EIP-1193 provider’s transports which are used to broadcast non-Base
transactions.
signInWithEmail
+ verifyEmailOTP
useSignInWithEmail
+ useVerifyEmailOTP
<SignIn />
componentuseSendCalls
, useCallsStatus
and useCapabilities
hooks. It requires a different CDP Config than for EOA wallets:
Parameter | Type | Description |
---|---|---|
parameters | { cdpConfig : Config ; providerConfig : CDPEmbeddedWalletConfig ; } | Configuration parameters for the connector |
parameters.cdpConfig | Config | - CDP core SDK configuration |
parameters.providerConfig | CDPEmbeddedWalletConfig | - Configuration for the EIP1193 provider |
CreateConnectorFn
<unknown
>
A wagmi-compatible connector that wraps the EIP1193 provider