VariablePdaSeedNodeThis node represents a variable seed for a program-derived address (PDA). It is characterized by a name and a type.
| Attribute | Type | Description |
|---|---|---|
kind |
"variablePdaSeedNode" |
The node discriminator. |
name |
CamelCaseString |
The name of the variable seed. |
docs |
string[] |
Markdown documentation for the variable seed. |
| Attribute | Type | Description |
|---|---|---|
type |
TypeNode |
The type of the variable seed. |
variablePdaSeedNode(name, type, docs?)Helper function that creates a VariablePdaSeedNode object from a name, a type node and optional documentation.
const node = variablePdaSeedNode('amount', numberTypeNode('u32'));
pdaNode({
name: 'ticket',
seeds: [variablePdaSeedNode('authority', publicKeyTypeNode())],
});