Kit
Interfaces

IAccountSignerMeta

An extension of the AccountMeta type that allows us to store TransactionSigners inside it.

Note that, because this type represents a signer, it must use one the following two roles:

  • AccountRole.READONLY_SIGNER
  • AccountRole.WRITABLE_SIGNER

Deprecated

Use AccountSignerMeta instead. It was only renamed.

Example

import { AccountRole } from '@solana/instructions';
import { generateKeyPairSigner, IAccountSignerMeta } from '@solana/signers';
 
const signer = await generateKeyPairSigner();
const account: IAccountSignerMeta = {
    address: signer.address,
    role: AccountRole.READONLY_SIGNER,
    signer,
};

Type Parameters

Type ParameterDefault typeDescription
TAddress extends stringstringSupply a string literal to define an account having a particular address.
TSigner extends TransactionSigner<TAddress>TransactionSigner<TAddress>Optionally provide a narrower type for the TransactionSigner to use within the account meta.

Properties

PropertyModifierType
addressreadonlyAddress<TAddress>
rolereadonlyWRITABLE_SIGNER | READONLY_SIGNER
signerreadonlyTSigner

On this page