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 richer connection method than eth_requestAccounts. Returns the connected accounts plus a capabilities map describing which features (sub-accounts, spend permissions, batched calls) the wallet supports.

Request

const result = await provider.request({
  method: 'wallet_connect',
  params: [
    {
      version: '1',
      capabilities: {
        // optional capability requests
      },
    },
  ],
})

Parameters

params[0].version
string
Connection protocol version. Use '1'.
params[0].capabilities
object
Optional capability requests. Reserved for sub-accounts and spend-permission flows.

Returns

{
  accounts: [
    {
      address: '0x...',
      capabilities?: { /* per-account caps */ },
    },
  ],
  userInfo?: {
    email?: string
    name?: string
  },
}
userInfo is present when the user authenticated with a social provider (Google, LINE). It is absent for EOA-only connections.

Errors

CodeCause
4001User rejected