Skip to main content
The Agon program emits Anchor events for every state-changing instruction. Indexers, gateways, and monitoring systems should key off these events rather than scraping transaction logs.

Participant events

ParticipantInitialized

FieldType
ownerPubkey
participant_idu32
registration_fee_lamportsu64
inbound_channel_policyu8

InboundChannelPolicyUpdated

FieldType
participant_idu32
inbound_channel_policyu8

Funding and withdrawal events

Deposited

FieldType
participant_idu32
token_idu16
amountu64

WithdrawalRequested

FieldType
participant_idu32
token_idu16
amountu64
destinationPubkey
unlock_ati64

WithdrawalCancelled

FieldType
participant_idu32
token_idu16
amount_returnedu64

Withdrawn

FieldType
participant_idu32
token_idu16
net_amountu64
fee_amountu64
destinationPubkey

Channel events

ChannelCreated

FieldType
payer_idu32
payee_idu32
token_idu16

ChannelFundsLocked

FieldType
payer_idu32
payee_idu32
token_idu16
amountu64
total_lockedu64

ChannelUnlockRequested

FieldType
payer_idu32
payee_idu32
token_idu16
requested_amountu64
unlock_ati64

ChannelFundsUnlocked

FieldType
payer_idu32
payee_idu32
token_idu16
released_amountu64
remaining_lockedu64

ChannelAuthorizedSignerUpdateRequested

FieldType
payer_idu32
payee_idu32
token_idu16
current_authorized_signerPubkey
pending_authorized_signerPubkey
activate_ati64

ChannelAuthorizedSignerUpdated

FieldType
payer_idu32
payee_idu32
token_idu16
previous_authorized_signerPubkey
new_authorized_signerPubkey

Settlement events

IndividualSettled

Emitted by settle_individual.
FieldType
payer_idu32
payee_idu32
token_idu16
amountu64
committed_amountu64
from_lockedbool

CommitmentBundleSettled

Emitted by settle_commitment_bundle.
FieldType
payee_idu32
token_idu16
channel_countu16
totalu64

ClearingRoundSettled

Emitted by settle_clearing_round.
FieldType
token_idu16
participant_countu16
channel_countu16
total_grossu64
total_net_adjustedu64
total_gross is the sum of all cumulative deltas implied by the round. total_net_adjusted is the magnitude of the net residual flow actually applied on-chain — often dramatically smaller, especially in bilateral or near-balanced rounds.

Authority events

ConfigUpdated

FieldType
authorityPubkey
fee_recipientPubkey
fee_bpsu16
chain_idu16

ConfigAuthorityTransferStarted

FieldType
current_authorityPubkey
pending_authorityPubkey

ConfigAuthorityTransferred

FieldType
previous_authorityPubkey
new_authorityPubkey

RegistryAuthorityTransferStarted

FieldType
current_authorityPubkey
pending_authorityPubkey

RegistryAuthorityTransferred

FieldType
previous_authorityPubkey
new_authorityPubkey

See also