Type aliases
MaybeEncodedAccount
MaybeEncodedAccount<
TAddress
> =MaybeAccount
<Uint8Array
,TAddress
>
Represents an encoded account that may or may not exist on-chain.
When the account exists, it is represented as an Account type having its TData
type
parameter set to Uint8Array
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 |
---|---|---|
TAddress extends string | string | Supply a string literal to define an account having a particular address. |