GLAMIDL Reference

register_trader

Creates an Eternal/Phoenix trader account with the GLAM vault PDA as its authority; registration alone does not activate delegated capabilities.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `register_trader` instruction (see program source for the full constraint).
glam_vaultwritableGLAM vault PDA used as the Phoenix trader authority; it does not fund trader-account rent.
glam_signersigner, writableWritable signer and payer that funds Phoenix trader-account rent and transaction fees after GLAM owner or delegate authorization.
integration_authorityread-only`integration_authority` account required by the `register_trader` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `register_trader` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `register_trader` instruction (see program source for the full constraint).
log_authorityread-only`log_authority` account required by the `register_trader` instruction (see program source for the full constraint).
global_configread-only`global_config` account required by the `register_trader` instruction (see program source for the full constraint).
trader_accountwritableEternal/Phoenix trader account created with the GLAM vault PDA as its authority and recorded as a GLAM external account.
system_programread-only`system_program` account required by the `register_trader` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
argsRegisterTraderParams

Policy & permissions

  • The GLAM state must be enabled.
  • The Phoenix integration must be enabled on the GLAM state.
  • Caller: GLAM owner, or a non-expired delegate with Phoenix InitTrader permission.
  • glam_signer is writable, must sign, and pays Phoenix trader-account rent and transaction fees.
  • glam_vault is the Phoenix trader authority; it does not pay trader-account rent.