MarginFi Integration StagingStaging
marginfi_account_initialize_pda
Initializes a MarginFi account PDA owned by the GLAM vault.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| glam_vault | writable | `glam_vault` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| glam_signer | signer, writable | `glam_signer` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| integration_authority | read-only | `integration_authority` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| cpi_program | read-only | `cpi_program` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| system_program | read-only | `system_program` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| marginfi_group | read-only | `marginfi_group` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| marginfi_account | writable | `marginfi_account` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
| instructions_sysvar | read-only | `instructions_sysvar` account required by the `marginfi_account_initialize_pda` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| account_index | u16 | |
| third_party_id | option<u16> |
Policy & permissions
- Permission:
MarginfiPermissions::InitAccount.