Skip to main content
Creates an SDK instance and returns helpers for working with it.

Signature

Options

string
The display name shown in the connection popup. Defaults to 'App' if omitted; recommended to set. Maximum length is unconstrained but keep it under 32 characters for readability.
string
HTTPS URL to a square logo. Shown in the connection popup. Must be reachable.
number[]
Chain IDs your app supports. Defaults to [] if omitted; recommended to pass at minimum 1868 (Soneium Mainnet) or 1946 (Soneium Minato).
Preference
Optional. Filters auth methods, requires linked EOA, sets the wallet popup URL.
Record<chainId, { url, id }>
Optional. Use a custom paymaster instead of the default Startale sponsorship. See Custom paymaster.
SubAccountOptions
Optional sub-account configuration. See Sub-accounts.

Returns

() => ProviderInterface
Returns the EIP-1193 provider. Use it directly or wrap it in a wagmi connector.
object
Helper methods for managing sub-accounts. See Sub-accounts for the full surface.