Bridge Integration StagingStaging
prepare_oft_transfer
Prepares the auxiliary token account used by the OFT transfer flow.
Required conditions
- The vault integration ACL must enable this integration before the instruction is accepted; that enablement is defined on the GLAM state account.
- If the signer is not the owner, the delegate ACL on the GLAM state must contain the exact protocol permission required by this instruction; registering a delegate alone is insufficient.
- Instruction-specific destination accounts must satisfy the external protocol's own account model; GLAM validates the accounts it needs for authorization and policy enforcement, then passes the remaining protocol accounts through CPI.
- Asset, amount, and destination restrictions must satisfy the configured transfer or destination policy when that policy is present.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | GLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records. |
| glam_vault | writable | Vault PDA associated with the GLAM state and used as the vault authority. |
| glam_signer | signer, writable | Calling authority or fee payer. |
| integration_authority | read-only | Program-derived authority used by the integration for downstream invocation. |
| bridge_registry | writable | Bridge route, session, registry, or managed-transfer account. |
| bridge_session | writable | Bridge route, session, registry, or managed-transfer account. |
| source_token_account | writable | Token account read or written by this instruction. |
| source_mint | read-only | Token mint account used or validated by this instruction. |
| auxiliary_token_account | writable | Token account read or written by this instruction. |
| cpi_program | read-only | Downstream program invoked by this instruction. |
| glam_protocol_program | read-only | GLAM Protocol program account used for authorization or CPI. |
| system_program | read-only | Solana System Program. |
| instructions | read-only | Solana sysvar account. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| args | PrepareOftTransferArgs |
Policy & permissions
- Signer must hold Bridge
Send. - OFT route and transfer policy rules are validated.
- A matching
commit_oft_transferinstruction must be present in the same transaction.