Streamflow Integration
Etch uses Streamflow for token vesting.
Overview
Streamflow is an audited vesting protocol on Solana with:
- Linear and cliff-based unlocks
- On-chain enforcement (no trust required)
- Claimable unlocks for beneficiaries
How Etch Uses Streamflow
When you configure vesting in your launch:
{
"vestingConfig": {
"mode": "time",
"cliffMonths": 6,
"durationMonths": 24
}
}Etch creates a Streamflow vesting contract that:
- Holds the reserved tokens
- Enforces the cliff period (no claims for 6 months)
- Releases tokens linearly over the duration (24 months)
Time-Based Vesting
Vesting is time-based only. Linear unlock over time with optional cliff:
{
"vestingConfig": {
"mode": "time",
"cliffMonths": 6, // Tokens locked for 6 months
"durationMonths": 24 // Then unlock linearly over 24 months
}
}Key Parameters
| Parameter | Description |
|---|---|
cliffMonths | Period where no tokens can be claimed (0-48) |
durationMonths | Total vesting duration after cliff (1-48) |
beneficiary | Wallet address that can claim tokens |
Claiming Tokens
Beneficiaries claim unlocked tokens via:
- Streamflow App
- Etch API:
POST /api/vesting/{id}/claim - Direct Solana transaction
Streamflow SDK Note
Streamflow SDK v11.0.0+ uses Unix timestamps for cliff, not durations. Etch handles this conversion automatically.
Useful Links
Last updated on