info
This package is currently in alpha and is subject to change.
FCL Wagmi Adapter
Provides a Wagmi connector that uses @onflow/fcl-ethereum-provider under the hood, allowing you to integrate Flow-based Cadence-Owned Accounts (COAs) seamlessly into Wagmi applications.
Installation
Usage
Basic Example:
API
fclWagmiConnector(options?: FclWagmiConnectorOptions): Connector
- Parameters
options?: object
– any additional configuration for the underlying FCL provider (gateway URL, custom FCL service, etc.)
- Returns: A Wagmi
Connector
object that can be used increateClient
orgetDefaultConfig
.
Notes:
- This connector essentially wraps
@onflow/fcl-ethereum-provider
as an EIP-1193 provider to talk to Flow EVM via Wagmi. - The user’s authenticated COA is exposed as the “account” in Wagmi context.