POST /api/external/v1/contracts/create
Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | Must be application/json |
x-magna-api-token | Yes | Your Magna API token |
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
tokenId | string (uuid) | Yes | The token this contract belongs to |
contractType | enum | Yes | Type of distribution contract (see below) |
name | string | No | Display name (e.g. "Main Vesting Contract") |
contractType is commonly one of:
| Value | Description |
|---|---|
AIRLOCK | Standard linear unlock + vesting contract |
AIRLOCK_MERKLE_VESTER | Merkle-tree based vesting (large recipient lists) |
AIRDROP | Simple airdrop contract |
CUSTODY | Custody / escrow contract |
STAKING | Staking contract |