A node that refers to the seed bump of a PDA account.
Attribute | Type | Description |
---|---|---|
kind |
"accountBumpValueNode" |
The node discriminator. |
name |
CamelCaseString |
The name of the account. |
This node has no children.
Helper function that creates a AccountBumpValueNode
object from the account name.
const node = accountBumpValueNode('associatedTokenAccount');
instructionNode({
name: 'transfer',
accounts: [
instructionAccountNode({
name: 'associatedTokenAccount',
isSigner: false,
isWritable: true,
}),
// ...
],
arguments: [
instructionArgumentNode({
name: 'bump',
type: numberTypeNode('u8'),
defaultValue: accountBumpValueNode('associatedTokenAccount'),
}),
// ...
],
});