Skip to Content
IntegrationsStreamflow Integration

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:

  1. Holds the reserved tokens
  2. Enforces the cliff period (no claims for 6 months)
  3. 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

ParameterDescription
cliffMonthsPeriod where no tokens can be claimed (0-48)
durationMonthsTotal vesting duration after cliff (1-48)
beneficiaryWallet 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.

Last updated on