NonceAccount class

Nonce Account

Inheritance
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

NonceAccount.new({required int version, required int state, required Pubkey authorizedPubkey, required String nonce, required FeeCalculator feeCalculator})
https://docs.solana.com/offline-signing/durable-nonce
const
NonceAccount.fromAccountInfo(AccountInfo info)
Creates an instance of this class from an account info.
factory
NonceAccount.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

authorizedPubkey Pubkey
The authority of the nonce account.
final
borshSchema BorshSchema
Maps this class' properties to codecs.
no setteroverride
feeCalculator FeeCalculator
Transaction fee calculator.
final
hashCode int
The hash code for this object.
no setterinherited
nonce String
Durable nonce (32 byte base-58 encoded string).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state int
Account state.
final
version int
Version.
final

Methods

borshSize() int
Returns the serialized byte length of this instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBorsh() Iterable<int>
Serializes this instance into a buffer.
inherited
toJson() Map<String, dynamic>
Serialises this class into a JSON object.
override
toNonceInformation(Pubkey nonceAccount) NonceInformation
Creates a NonceInformation instance from the nonce account data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

codec BorshStructSizedCodec
The encoders/decoders of this class' properties.
no setter
length int
Nonce account layout byte length.
no setter

Static Methods

fromBorsh(Iterable<int> buffer) NonceAccount
Creates an instance of this class from a buffer.
override
fromBorshBase64(String encoded) NonceAccount
Creates an instance of this class from a base-64 encoded string.
override
tryFromAccountInfo(AccountInfo? info) NonceAccount?
Creates an instance of this class from an account info.
tryFromBorsh(Iterable<int>? buffer) NonceAccount?
Creates an instance of this class from a buffer.
override
tryFromBorshBase64(String? encoded) NonceAccount?
Creates an instance of this class from a base-64 encoded string.
override