Skip to main content

Merkle Instant

This section focuses on the architecture of accounts created or used in the most important instructions of the Merkle Instant program.

Account architecture

Sablier Merkle Instant program

The sablier_merkle_instant program implements the following main functionalities:

  • initialize
  • create_campaign
  • claim
  • clawback

We will go into the details and specifics of each one later. For now, we will focus only on the accounts being created.

initialize Instruction

The Treasury PDA stores this data:

create_campaign Instruction

Each Campaign account stores the following parameters:

claim Instruction

The Claim receipt account serves as proof of claim for the given recipient.

The Flow of the Airdrop Token

create_campaign Instruction

This instruction does not perform the airdrop token transfer, but the transfer is expected to be made as a separate transaction. Therefore, the campaign ATA is assumed to be funded after the campaign creation.

claim Instruction

clawback Instruction