GLAMIDL Reference

add_layerzero_oft_route

Add Layerzero Oft Route configuration action.

Accounts

AccountRoleDescription
glam_statewritableGLAM state account that stores vault configuration, integration ACLs, delegate permissions, policies, assets, mint linkage, and pricing records.
glam_signersigner, writableCalling authority or fee payer.
glam_protocol_programread-onlyGLAM Protocol program account used for authorization or CPI.

Arguments

ArgumentTypeNotes
routeLayerzeroOftRoute

Policy & permissions

  • Only the GLAM owner can call. Delegates cannot manage LayerZero OFT routes.
  • The instruction loads the existing OFT policy, appends the route, validates routes, and persists the policy.

TypeScript SDK usage

await glamClient.bridge.addLayerzeroOftRoute({
  sourceMint,
  destinationChain,
  destinationRecipient,
  providerProgram,
  managementMode,
  minAmount,
  maxAmount,
});