Transaction Builder API
Create vesting lock
Build a transaction that locks tokens into a vesting contract
POST
Builds an unsigned transaction that locks tokens into the Snekfun vesting contract.
Auth: Public
Possible errors:
Request body
Caller’s Cardano address.
Token asset ID to lock.
Amount of tokens to lock (bigint string). When divided by
stagesCount, each stage amount must remain positive.Unlock time as a Unix timestamp in milliseconds.
Number of vesting stages from 1 to 10. Tokens unlock in equal tranches across stages.
Response
Hex-encoded unsigned transaction CBOR.
Error response
Machine-readable error code.
Human-readable error message.
400 INVALID_PARAMS— one or more required fields are missing or have the wrong type.400 INVALID_LOCK_END—lockEndmust be in the future.400 INVALID_AMOUNT—amount / stagesCountis zero after integer division, so the per-stage amount is not positive.500 SERVER_ERROR— unexpected server-side failure.