isTronWalletAccount 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 Tron wallet account, false otherwise. Also acts as a TypeScript type guard, narrowing the type to TronWalletAccount.
Related functions
- getTronWeb - Get the TronWeb instance from a wallet account