> ## 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.

# Initialization

> Pick between the wagmi connector and the raw EIP-1193 provider.

The Startale App SDK supports two integration modes. Pick the one that matches your codebase.

## With wagmi (recommended for React)

```ts theme={null}
import { startaleConnector } from '@startale/app-sdk'
import { http, createConfig } from 'wagmi'
import { soneium } from 'wagmi/chains'

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

declare module 'wagmi' {
  interface Register {
    config: typeof config
  }
}
```

Wrap your app with `WagmiProvider` and `QueryClientProvider`. See the [Quickstart](https://docs.startale.com/quickstart.md) for a complete example.

## With the raw provider

For non-React apps, custom state management, or server-side wallet code:

```ts theme={null}
import { createStartaleAccountSDK } from '@startale/app-sdk'

const sdk = createStartaleAccountSDK({
  appName: 'My App',
  appLogoUrl: 'https://my-app.com/logo.png',
  appChainIds: [1868],
})

const provider = sdk.getProvider()
const accounts = await provider.request({ method: 'eth_requestAccounts' })
```

## Options

**appName** `string`

The display name shown in the connection popup. Defaults to `'App'` if omitted; recommended to set.

**appLogoUrl** `string`

An HTTPS URL to a square logo. Shown in the connection popup.

**appChainIds** `number[]`

Chain IDs your app supports. Defaults to `[]` if omitted. Pass `1868` for Soneium Mainnet. See [Networks](https://docs.startale.com/concepts/networks.md).

**preference** `Preference`

Optional preferences. See [`createStartaleAccountSDK`](https://docs.startale.com/api-reference/create-startale-account-sdk) for the full type.

**paymasterOptions** `Record\<chainId, \{ url, id \}\>`

Optional. Wire an ERC-7677 paymaster service per chain. A standalone application needs this to sponsor gas; without it, users pay from their smart account ETH balance. Mini Apps inside the Startale App ignore this field and are sponsored by the host. Only `url` is transmitted, and only on `wallet_sendCalls`. See [Gas in a standalone application](https://docs.startale.com/app-sdk/gasless.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.