Every token distribution shares one Merkle-root eligibility check and one timelocked withdrawal path, which never takes tokens that claims can still reach.
Token Distribution commits an allocation list of any size under one Merkle root, so publishing costs the same for ten recipients or ten thousand. Delivery still pays gas: the sender pays per push batch (up to 100 recipients), and each self-service recipient pays for their claim unless a relayer submits it.
Owner withdrawals never take tokens that open claims can still reach: they wait at least seven days after scheduling, and never execute before a time-bound window closes or a vesting initialisation deadline passes. Vesting withdrawals reserve all unclaimed initialised allocations, while push withdrawals take the full balance.
Push distributions transfer directly with no claim step, time-bound distributions let each recipient self-claim once inside a fixed window, and vesting distributions initialise once before a deadline and then pay progressive claims as units unlock.
Why put an allocation in many hands without running a sale
Issuers often distribute tokens to many wallets after launch for rewards, community allocations or settled subscription payouts. Sending individual transfers costs gas per transfer and forces the issuer to reconcile a private payout list against the chain.
Token distribution commits the entire recipient set under one Merkle root at deployment, costing the same for ten recipients or ten thousand. Each payout runs through the token's own compliance path, while the operator's integration holds the source list used to generate proofs.
Why a distribution uses the token's own compliance path
Every distribution payout executes as an ordinary transfer through the token's transfer-compliance modules (see Controls and evidence), preventing eligibility drift between a side-car payout tool and the token contract.
Each distribution contract holds its pre-funded token balance directly with no separate intermediary wallet. That balance remains subject to the token's custodian role for emergency forced transfers.
What Token Distribution is, and how the three families differ
The API and contracts refer to token distributions as airdrops: DALP installs the factories and indexes distributions in the Console and Platform API, while creation, funding, distribution and claims run via direct contract calls. The three families differ in who pays gas and when tokens unlock:
- Push: The contract owner calls
distributeorbatchDistributeso tokens arrive directly on a chosen date at the sender's gas cost. - Time-bound: Each recipient calls
claimonce inside a fixed start and end window, paying their own gas (or using a meta-transaction relayer via the trusted forwarder). - Vesting: Each recipient initialises once before the deadline to start their vesting clock under a pluggable strategy (such as linear with cliff), then claims repeatedly as allocations unlock.
All three families share a timelocked owner recovery path: schedule a withdrawal, wait at least seven days (and until the claim window or initialisation deadline passes), then withdraw only spare tokens no open claim can reach. This timelock binds the owner only: the token's custodian role can force-transfer the contract balance, and a system manager can upgrade the factory implementation.
Running a distribution day to day
Push distributions are owner-driven: the single owner address set at deployment distributes batches, adjusts distributionCap (0 or null means uncapped, taking effect immediately with no timelock) and schedules withdrawals. Duplicate indexes or cap overruns revert the whole batch.
Time-bound and vesting distributions are self-service (claim or batchClaim). On vesting distributions, track three per-index states separately: uninitialised (cannot claim, and misses out permanently after the initialisation deadline), initialised and vesting, and fully claimed. Only the recipient wallet can initialise its own index.
A vesting index moves through one initialisation, any number of claims, then a fully claimed state, while push and time-bound skip initialisation.
Withdrawing unclaimable tokens is a two-step timelocked flow across every family. Calling scheduleWithdrawal sets the eligible time to the later of seven days from scheduling or the close of claims (the claim window end for time-bound, or the initialisation deadline for vesting). Calling executeWithdrawal early reverts with DALP-4353. Cancelling and rescheduling restarts the seven-day wait, and only one withdrawal can be pending at a time.
Recovery waits at least seven days and until claims close, then takes only what no claim can still reach.
A cancelled schedule starts over instead of resuming.
When a withdrawal becomes eligible, and what it sends, in each family.
A vesting withdrawal reserves every initialised allocation's unclaimed remainder so those recipients can keep claiming as their schedules vest. After a re-basing corporate action, a vesting contract reserves its full balance until every initialised allocation is fully claimed. If no spare tokens remain, executeWithdrawal clears the schedule and emits TokensWithdrawn with amount zero.
withdrawalSchedule() and WithdrawalScheduled expose the eligible timestamp, surfaced as withdrawalEligibleAt in the API and “Recovery available” in the Console. Watch push batches for compliance reverts (one invalid recipient reverts the batch), time-bound claim windows (immutable after deploy) and vesting initialisation deadlines.
One base contract, three claim implementations
One abstract base contract provides Merkle-root eligibility (immutable once deployed) and timelocked withdrawal across all three families, while a system manager can upgrade the factory implementation. Below that base, push tracks claims via a per-index bitmap (claimed or not), whereas time-bound and vesting track cumulative claimed amounts per index.
The three distribution contract families, compared where they diverge.
Calling initializeVesting pins the active vesting strategy onto that index before moving tokens, so later owner strategy changes affect only future initialisations. Linear strategies fix immutable cliff and duration values at deployment and measure both from each recipient's own initialisation timestamp.
Deploying any distribution requires TOKEN_ at the system level or GOVERNANCE_ROLE on the token (see role grant). When the token's access manager holds an approval rule on deploying a distribution, a Governance holder's deployment needs a second approver: it is proposed, approved and run through the access manager proposal routes. Deployment registers an on-chain identity for the distribution under the specified country so it can hold compliance-gated tokens.
The integration contract
Each family exposes its own on-chain verbs: push uses distribute and batchDistribute (calling claim reverts with DALP-3018), time-bound uses claim and batchClaim, and vesting requires initializeVesting or batchInitializeVesting before claiming.
Build Merkle trees with one unique index per leaf using double-hashed encoding: keccak256(abi.. Sharing an index across leaves corrupts claim tracking and vesting reserves. Self-service calls verify against the caller's address, batch calls cap at 100 entries, and batchClaim aggregates multiple indexes into one transfer (whereas batchDistribute sends one transfer per recipient).
A system manager installs airdrop factories via POST /api/ (using the network directory's registered implementations by default), while EVM distribution creation, funding and claims run via direct contract calls (Platform API write routes return HTTP 422 OPERATION_). Read indexed distributions through three endpoints:
GET /api/: Lists distributions by search text,v2/ addons/ airdrops typeId(push-airdrop,time-bound-airdrop,vesting-airdrop) andfilter[token]. Returns not found when no factory is installed.GET /api/: Returns one distribution plusv2/ addons/ airdrops/ {airdrop Address} recipientCount(returns not found for unknown addresses).GET /api/: Lists paid recipients newest first with amounts and timestamps.v2/ addons/ airdrops/ {airdrop Address}/ recipients
In the Console, an asset's Placement tab shows an Airdrops summary (with View details for recipient lists) whenever campaigns exist, and Asset lifecycle lists installed airdrop factories (Push airdrop, Vesting airdrop, Time-bound airdrop) in read-only views.
Handle contract errors distinctly: uninitialised vesting index (DALP-3025), outside claim window (DALP-3001, DALP-3002), invalid Merkle proof (DALP-3032), and already claimed (DALP-3030).
Controls and evidence
Merkle tree membership and amounts are decided off chain, while the contract enforces proof validity against the immutable root and executes every transfer through the token's transfer-compliance modules.
On-chain events record creation, every push or claim transfer, every vesting initialisation and every withdrawal-schedule step (read individual claim events to break down batch claims). Retain the off-chain recipient list and approval evidence separately to document how the root was constructed. Push sends record operator-initiated transfers, while self-service claims record recipient-initiated transfers.
Frequently asked questions
What happens when a push distribution misses a recipient?
The owner can still distribute to that index later because push distributions have no claim window, unless an owner withdrawal empties the contract (which takes the full balance seven days after scheduling) or a cap must be raised first. Recipients cannot self-claim.
What happens if I never initialise my vesting allocation?
Nothing unlocks, and initialising fails once the initialisation deadline passes, making the allocation withdrawable as spare balance by the owner. Initialise before the deadline even if you plan to claim later.
Does my vesting schedule run from deployment or from my own initialisation?
From your own initialisation timestamp. Waiting delays your cliff and finish date rather than banking vested time.
Can I claim while the cliff is still running?
No. Claims with zero unlocked amount revert. After the cliff passes, the first claim pays everything vested since initialisation, and later claims pay incremental unlocks.
Can someone else claim my allocation for me?
Yes, through a meta-transaction relayer once you authorise the claim, so you still receive the tokens without paying gas. Use a push distribution when recipients cannot transact at all.
Can the owner withdraw tokens while claims are still open?
No. Withdrawals wait at least seven days and until claims close (window end for time-bound, initialisation deadline for vesting), and vesting withdrawals leave all unclaimed initialised allocations untouched. Push distributions have no claim window, so a withdrawal after seven days takes the entire remaining balance. Custodian forced transfers and factory upgrades remain outside the owner withdrawal rule.