Creating new Contract
POST /api/v1/contracts
Creates a new smart contract. Only Standard Registry users are allowed to make this request.
Authentication: Bearer token required (Authorization: Bearer <token>)
Permission: Permissions.CONTRACTS_CONTRACT_CREATE
Request
Request Body
{
"description": "Example retire contract",
"type": "RETIRE"
}Field
Type
Required
Description
description
string
No
Human-readable description of the contract
type
string
Yes
Contract type: RETIRE or WIPE
Response
Success Response
Status: 201 Created
Error Responses
Status
Description
401 Unauthorized
Missing or invalid token
403 Forbidden
Insufficient permissions
500 Internal Server Error
Unexpected server failure
Was this helpful?