JS Kit SDK API Reference / Instructions / AllocateAndPostRecordInstruction
Class: AllocateAndPostRecordInstruction
Defined in: instructions/allocateAndPostRecordInstruction.ts:26
Builder for allocating and writing an SNS V2 record account.
Constructors
Constructor
new AllocateAndPostRecordInstruction(
obj):AllocateAndPostRecordInstruction
Defined in: instructions/allocateAndPostRecordInstruction.ts:42
Parameters
obj
AllocateAndPostRecordInstructionParams
Returns
AllocateAndPostRecordInstruction
Properties
content
content:
ReadonlyUint8Array
Defined in: instructions/allocateAndPostRecordInstruction.ts:32
Serialized record content.
record
record:
string
Defined in: instructions/allocateAndPostRecordInstruction.ts:30
Encoded V2 record label.
tag
tag:
number
Defined in: instructions/allocateAndPostRecordInstruction.ts:28
Instruction discriminator.
schema
staticschema:object
Defined in: instructions/allocateAndPostRecordInstruction.ts:34
struct
struct:
object
struct.content
content:
object
struct.content.array
array:
object
struct.content.array.type
type:
string="u8"
struct.record
record:
string="string"
struct.tag
tag:
string="u8"
Methods
getInstruction()
getInstruction(
programAddress,systemProgram,splNameServiceProgram,payer,record,domainAddress,domainOwner,centralState):Instruction
Defined in: instructions/allocateAndPostRecordInstruction.ts:52
Parameters
programAddress
Address
systemProgram
Address
splNameServiceProgram
Address
payer
Address
record
Address
domainAddress
Address
domainOwner
Address
centralState
Address
Returns
Instruction
serialize()
serialize():
Uint8Array
Defined in: instructions/allocateAndPostRecordInstruction.ts:48
Returns
Uint8Array