account.getSmartAccount()
Get the underlying viem SmartAccount for advanced operations.
Type: instance
Signature
getSmartAccount(): SmartAccountParameters
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
- account.getAddress() - Get account address
- account.getChain() - Get chain configuration
- Account Overview - High-level Account API