MessageSent event storage
To ensure persistent and reliable message storage, MessageSent events are stored
in accounts. MessageSent event accounts are generated client-side, passed into
the instruction call, and assigned to have the MessageTransmitter
program as
the owner. Please see the
Quickstart Guide
for how to generate this account and pass it to the instruction call.
For depositForBurn
messages, this costs ~0.00295104 SOL
in rent. This rent
is paid by the
event_rent_payer
account which can be the user or subsidized by a calling program or integrator.
Once an attestation is available and the message has been received on the
destination chain, the event account can be closed and have the SOL reclaimed to
the event_rent_payer
account. This is done by calling the
reclaim_event_account
instruction. This can only be called by the event_rent_payer
account from when
the message was sent.
Details on the message format can be found on the Message Format page.