Checking Starknet Wallet Account Type
When working with multiple blockchain types, you may need to check if a wallet account is specifically a Starknet wallet account. TheisStarknetWalletAccount type guard function helps you narrow down the type safely.
Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
walletAccount | WalletAccount | The wallet account to check |
Returns
boolean - Returns true if the wallet account is a Starknet wallet account, false otherwise. Also acts as a TypeScript type guard, narrowing the type to StarknetWalletAccount.
Related functions
- getStarknetAccount - Get the Starknet account from a wallet account