GLAMIDL Reference

submit_observation_wormhole

Submits a Wormhole Guardian-verified observation for a configured registered position.

Accounts

AccountRoleDescription
glam_stateread-only`glam_state` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).
observation_statewritable`observation_state` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).
wormhole_configwritable`wormhole_config` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).
guardian_setread-only`guardian_set` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).
guardian_signaturesread-only`guardian_signatures` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).
wormhole_verify_vaa_shimread-only`wormhole_verify_vaa_shim` account required by the `submit_observation_wormhole` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
position_id[u8; 32]
guardian_set_bumpu8
vaa_bodybytes

Policy & permissions

  • RPI role access is not required for this submit path; the signer relays a Wormhole VAA body whose signatures have already been posted to the Wormhole Verification Shim.
  • Position must be enabled, configured as a USD-valued Wormhole position, and match the stored Wormhole and Hyperliquid payload constraints.
  • Accepted payloads become pending USD observations; validate_observation still performs GLAM oracle normalization before pricing.