This node represents a reference to an existing PdaNode
in the Codama IDL.
Attribute | Type | Description |
---|---|---|
kind |
"pdaLinkNode" |
The node discriminator. |
name |
CamelCaseString |
The name of the PdaNode we are referring to. |
Attribute | Type | Description |
---|---|---|
program |
ProgramLinkNode |
(Optional) The program associated with the linked PDA. Default to using the program we are currently under. |
Helper function that creates a PdaLinkNode
object from the name of the PdaNode
we are referring to. If the PDA is from another program, the program
parameter must be provided as either a string
or a ProgramLinkNode
.
const node = pdaLinkNode('myPda');
const nodeFromAnotherProgram = pdaLinkNode('myPda', 'myOtherProgram');