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.

Initiates the connection flow. The first call opens the popup; subsequent calls return the cached address.

Request

const accounts = await provider.request<string[]>({
  method: 'eth_requestAccounts',
})

Parameters

None.

Returns

string[], array of addresses. The first element is the user’s smart-account address. Currently always a single address.

Errors

CodeCause
4001User rejected the connection in the popup

Notes

  • Must be called from within a user gesture (e.g. a click handler), or browsers will block the popup.
  • After this call resolves, all other RPC methods become available.