Skip to main content
POST
Builds an unsigned transaction that locks tokens into the Snekfun vesting contract. Auth: Public

Request body

string
required
Caller’s Cardano address.
string
required
Token asset ID to lock.
string
required
Amount of tokens to lock (bigint string). When divided by stagesCount, each stage amount must remain positive.
number
required
Unlock time as a Unix timestamp in milliseconds.
number
required
Number of vesting stages from 1 to 10. Tokens unlock in equal tranches across stages.

Response

string
Hex-encoded unsigned transaction CBOR.

Error response

string
Machine-readable error code.
string
Human-readable error message.
Possible errors:
  • 400 INVALID_PARAMS — one or more required fields are missing or have the wrong type.
  • 400 INVALID_LOCK_ENDlockEnd must be in the future.
  • 400 INVALID_AMOUNTamount / stagesCount is zero after integer division, so the per-stage amount is not positive.
  • 500 SERVER_ERROR — unexpected server-side failure.