Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.startale.com/llms.txt

Use this file to discover all available pages before exploring further.

A wagmi connector that integrates the Startale App SDK with wagmi’s connection lifecycle, account events, and chain switching.
import { startaleConnector } from '@startale/app-sdk'
import { createConfig, http } from 'wagmi'
import { soneium, soneiumMinato } from 'wagmi/chains'

export const config = createConfig({
  chains: [soneium, soneiumMinato],
  connectors: [
    startaleConnector({
      appName: 'My App',
      appLogoUrl: 'https://my-app.com/logo.png',
    }),
  ],
  transports: {
    [soneium.id]: http(),
    [soneiumMinato.id]: http(),
  },
})

Signature

function startaleConnector(parameters?: BaseAccountParameters): Connector

Parameters

appName
string
Display name shown in the connection popup. Defaults to document.title.
appLogoUrl
string
HTTPS URL to a square logo.
preference
Preference
Optional. Configures authType, eoaRequired, walletUrl. Chains are derived from the wagmi createConfig({ chains }) array, not from preference.
subAccounts
SubAccountOptions
Sub-account configuration.

Returns

A wagmi Connector instance. Use it inside connectors: [...] in createConfig.