Skip to Content
API referenceSatellite EvmSrcComponentscreateWagmiConfig()

@tuwaio/satellite-connect-monorepo


createWagmiConfig()

createWagmiConfig(config): Config<readonly [Chain, Chain], Record<number, Transport<string, Record<string, any>, EIP1193RequestFn>>, readonly CreateConnectorFn[]>

Defined in: packages/satellite-evm/src/utils/createWagmiConfig.ts:58 

Creates a Wagmi configuration with initialized connectors and transports

Parameters

config

ConnectorsInitProps & Omit<CreateConfigParameters, "client" | "connectors">

Combined configuration parameters for Satellite and Wagmi

Returns

Config<readonly [Chain, Chain], Record<number, Transport<string, Record<string, any>, EIP1193RequestFn>>, readonly CreateConnectorFn[]>

Configured Wagmi instance

Remarks

This function combines Satellite connector initialization with Wagmi configuration. It automatically sets up HTTP transports for each chain if custom transports are not provided.

Example

const config = createWagmiConfig({ chains: [mainnet, polygon], projectId: "your_project_id", appName: "My dApp", appUrl: "https://mydapp.com", appLogoUrl: "https://mydapp.com/logo.png" });
Last updated on