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:
- Counterfactual addresses - Getting the address before the account is deployed on-chain
- 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
- account.address - Synchronous address property
- account.getSmartAccount() - Get underlying smart account
- account.sendTransaction() - Deploys account if needed