Method Signature
agent.getSmartAccount(params: GetSmartAccountParams): Promise<SmartAccountInfo>
Description
Retrieves information about an existing smart account.
Parameters
Origin wallet address to query.
Return Value
Returns Promise<SmartAccountInfo> - same structure as createSmartAccount.
Example
const accountInfo = await giza.agent.getSmartAccount({
origin_wallet: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e'
});
console.log('Smart Account:', accountInfo.smartAccountAddress);
Error Handling
try {
const info = await giza.agent.getSmartAccount({
origin_wallet: userWallet
});
} catch (error) {
if (error instanceof NotImplementedError) {
console.error('Lookup by smart account address not yet supported');
}
}