AccountMeta class
Account Meta
- Inheritance
-
- Object
- Serializable
- AccountMeta
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- AccountMeta.new(Pubkey pubkey, {bool isSigner = false, bool isWritable = false})
-
Account metadata used to define instruction accounts.
const
-
AccountMeta.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory - AccountMeta.signer(Pubkey pubkey, {bool isWritable = false})
-
Creates a signer account.
factory
- AccountMeta.signerAndWritable(Pubkey pubkey)
-
Creates a signer and writable account.
factory
- AccountMeta.writable(Pubkey pubkey, {bool isSigner = false})
-
Creates a writable account.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSigner → bool
-
True if an instruction requires a transaction signature matching
pubkey
.final - isWritable → bool
-
True if the
pubkey
can be loaded as a read-write account.final - pubkey → Pubkey
-
An account's public key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Pubkey? pubkey, bool? isSigner, bool? isWritable}) → AccountMeta - Creates a copy of this class applying the provided parameters to the new instance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialises
this
class into a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited