Phoenix Integration StagingStaging
register_trader
Creates an Eternal/Phoenix trader account with the GLAM vault PDA as its authority; registration alone does not activate delegated capabilities.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `register_trader` instruction (see program source for the full constraint). |
| glam_vault | writable | GLAM vault PDA used as the Phoenix trader authority; it does not fund trader-account rent. |
| glam_signer | signer, writable | Writable signer and payer that funds Phoenix trader-account rent and transaction fees after GLAM owner or delegate authorization. |
| integration_authority | read-only | `integration_authority` account required by the `register_trader` instruction (see program source for the full constraint). |
| cpi_program | read-only | `cpi_program` account required by the `register_trader` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `register_trader` instruction (see program source for the full constraint). |
| log_authority | read-only | `log_authority` account required by the `register_trader` instruction (see program source for the full constraint). |
| global_config | read-only | `global_config` account required by the `register_trader` instruction (see program source for the full constraint). |
| trader_account | writable | Eternal/Phoenix trader account created with the GLAM vault PDA as its authority and recorded as a GLAM external account. |
| system_program | read-only | `system_program` account required by the `register_trader` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| args | RegisterTraderParams |
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
InitTraderpermission. glam_signeris writable, must sign, and pays Phoenix trader-account rent and transaction fees.glam_vaultis the Phoenix trader authority; it does not pay trader-account rent.