MaybeAccount
Represents an account that may or may not exist on-chain.
When the account exists, it is represented as an Account type with an additional exists
attribute set to true. When it does not exist, it is represented by an object containing only
the address of the account and an exists attribute set to false.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TData extends | Uint8Array | object | - | The nature of this account's data. It can be represented as either a Uint8Array – meaning the account is encoded – or a custom data type – meaning the account is decoded. |
TAddress extends string | string | Supply a string literal to define an account having a particular address. |