Kit
Type aliases

IAccountMeta

IAccountMeta<TAddress> = AccountMeta<TAddress>

Represents an account's address and metadata about its mutability and whether it must be a signer of the transaction.

Typically, you will use one of its subtypes.

roleisSignerisWritable
ReadonlyAccount<TAddress>AccountRole.READONLYNoNo
WritableAccount<TAddress>AccountRole.WRITABLENoYes
ReadonlySignerAccount<TAddress>AccountRole.READONLY_SIGNERYesNo
WritableSignerAccount<TAddress>AccountRole.WRITABLE_SIGNERYesYes

Type Parameters

Type ParameterDefault type
TAddress extends stringstring

Deprecated

Use AccountMeta instead. It was only renamed.

Example

type RentSysvar = ReadonlyAccount<'SysvarRent111111111111111111111111111111111'>;

On this page