baseAccount
Connector for the Base Account SDK.
Import
ts
import { baseAccount } from 'wagmi/connectors'
Usage
ts
import { createConfig, http } from 'wagmi'
import { mainnet, sepolia } from 'wagmi/chains'
import { baseAccount } from 'wagmi/connectors'
export const config = createConfig({
chains: [mainnet, sepolia],
connectors: [baseAccount()],
transports: {
[mainnet.id]: http(),
[sepolia.id]: http(),
},
})
WARNING
Before going to production, it is highly recommended to set an appName
and appLogoUrl
for your application that can be displayed upon connection to the wallet.
Parameters
ts
import { type baseAccountParameters } from 'wagmi/connectors'
Check out the Base Account SDK docs for more info.
appName
string
Application name.
ts
import { baseAccount } from 'wagmi/connectors'
const connector = baseAccount({
appName: 'My Wagmi App',
})
appLogoUrl
string | null | undefined
Application logo image URL; favicon is used if unspecified.
ts
import { baseAccount } from 'wagmi/connectors'
const connector = baseAccount({
appName: 'My Wagmi App',
appLogoUrl: 'https://example.com/myLogoUrl.png',
})