NameServiceCreateLayout class

Create an empty name record layout.

Inheritance

Constructors

NameServiceCreateLayout({required BigInt lamports, required List<int> hashedName, required int space})
Constructs a NameServiceCreateLayout instance.
NameServiceCreateLayout.fromBuffer(List<int> data)
Creates a NameServiceCreateLayout instance from buffer data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hashedName List<int>
SHA256 of the (HASH_PREFIX + Name) of the record to create, hashing is done off-chain
final
instruction NameServiceProgramInstruction
The instruction associated with the layout.
no setteroverride
lamports BigInt
Number of lamports to fund the name record with
final
layout → StructLayout
The layout structure.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space int
Number of bytes of memory to allocate in addition to the NameRecordHeader
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
Serializes the layout data.
override
toBytes() List<int>
Converts the program to bytes using Borsh serialization.
inherited
toHex() String
Converts the program to a hexadecimal string.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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