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.getSmartAccount()

Get the underlying viem SmartAccount for advanced operations.

Type: instance

Signature

getSmartAccount(): SmartAccount

Parameters

None.

Returns

SmartAccount - The raw viem SmartAccount instance.

Behavior

Returns the underlying viem SmartAccount instance, giving you direct access to all viem smart account methods and properties.

Example

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

Related