GLAMIDL Reference

settle_managed_transfer

Settles a managed inflight transfer and removes it from the registry.

Handler narrative

  1. Load the GLAM state or program account required by the instruction and verify the signer.
  2. Verify that the integration is enabled on the vault and that the caller has the required delegate permission or owner authority.
  3. Validate the instruction-specific policy, then invoke the external protocol with the vault authority where required.
  4. Settles a managed inflight transfer and removes it from the registry.

Required conditions

  • The submitted accounts must match the declared account list, signer requirements, writable requirements, fixed program addresses, and account relationships shown below.
  • The GLAM state account is the source of truth for owner, enabled integrations, delegate permissions, policies, assets, borrowable assets, timelock settings, mint linkage, and pricing records.
  • The vault account must be the PDA controlled by the core protocol program and derived conceptually from the state account; instructions use it as the vault authority for SOL, token accounts, and external positions.
  • 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

Uses the standard Big Seven account pattern, plus the instruction-specific accounts below.

AccountRoleDescription
bridge_registrywritableBridge configuration or registry account used by the instruction.

Arguments

ArgumentTypeNotes
argsSettleManagedTransferArgsInstruction parameter object; field details are listed below. Fields: transfer_id: pubkey

Policy & permissions

  • Enable the Bridge integration program before LayerZero OFT or managed-transfer actions.
  • Caller must be the owner or a delegate with the explicit protocol permission required by this instruction.
  • Destination and asset restrictions must satisfy the configured transfer or destination policy when one is set.

TypeScript SDK usage

await glamClient.bridge.settleManagedTransfer(transferId);

Cross-instruction constraints

  • Run after validation and downstream settlement are complete so the managed transfer can be removed from the registry.