Bridge Integration StagingStaging
add_layerzero_oft_route
Add Layerzero Oft Route configuration action.
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_signer | signer, writable | Calling authority or fee payer. |
| glam_protocol_program | read-only | GLAM Protocol program account used for authorization or CPI. |
Arguments
| Argument | Type | Notes |
|---|---|---|
| route | LayerzeroOftRoute |
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,
});