Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public final class AccountMeta

  1. Object
  2. AccountMeta
One account an instruction touches, with whether it must sign and whether it is written.

Constructors

public AccountMeta(SolanaAddress address, boolean signer, boolean writable)An account reference.

Methods

public static AccountMeta signerWritable(SolanaAddress address)A writable account that signs.
public static AccountMeta signer(SolanaAddress address)A read-only account that signs.
public static AccountMeta writable(SolanaAddress address)A writable account that does not sign.
public static AccountMeta readonly(SolanaAddress address)A read-only account that does not sign.
public SolanaAddress getAddress()The account.
public boolean isSigner()Whether the account’s key must sign the transaction.
public boolean isWritable()Whether the instruction writes the account.

Inherited methods

Constructor details

AccountMeta

public AccountMeta(SolanaAddress address, boolean signer, boolean writable)
An account reference.

Method details

signerWritable

public static AccountMeta signerWritable(SolanaAddress address)
A writable account that signs.

signer

public static AccountMeta signer(SolanaAddress address)
A read-only account that signs.

writable

public static AccountMeta writable(SolanaAddress address)
A writable account that does not sign.

readonly

public static AccountMeta readonly(SolanaAddress address)
A read-only account that does not sign.

getAddress

public SolanaAddress getAddress()
The account.

isSigner

public boolean isSigner()
Whether the account’s key must sign the transaction.

isWritable

public boolean isWritable()
Whether the instruction writes the account.