ConnectProvider
Description
The ConnectProvider
component in TypeScript React sets up a context provider for managing the ConnectSmartAccount related state and functionality.
Parameters
apiKey : Cometh Connect public api key. This can be retrieved from the Cometh dashboard
networksConfig: - bundlerUrl: The URL of the Cometh bundler. This can be retrieved from the Cometh 4337 docs and dashboard. - paymasterUrl - optional: The paymaster API key. This can be retrieved from the Cometh dashboard - chain: Your required viem chain. - rpcUrl - optional
signer - optional: A signer from an external auth provider (metamask...) that will control the account
Example
Last updated