Skip to content
function getSignerAddress(ctx): `0x${string}`;

Gets the connected account address.

Resolution order:

  1. deps.accountAddress — set explicitly, available before walletClient
  2. deps.walletClient.account.address — from the connected wallet

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.

Returns

`0x${string}`

The address of the connected account.

Throws

WalletNotConnectedError If neither accountAddress nor walletClient is configured.