Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

account.getAddress()

Get the smart account address (async).

Type: instance async

Signature

async getAddress(): Promise<Address>

Parameters

None.

Returns

Promise<Address> - The smart account address.

Behavior

This async method returns the smart account address. It's useful for:

  1. Counterfactual addresses - Getting the address before the account is deployed on-chain
  2. Address verification - Confirming the computed address matches expectations

For deployed accounts, this returns the same value as the synchronous address property.

Example

import { Account } from '@jaw.id/core';
 
const account = await Account.get({
  chainId: 1,
  apiKey: 'your-api-key',
});
 
const address = await account.getAddress();
console.log('Address:', address);

Related