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>)
Authorization: Bearer <token>
Permission: Permissions.CONTRACTS_CONTRACT_CREATE
Permissions.CONTRACTS_CONTRACT_CREATE
{ "description": "Example retire contract", "type": "RETIRE" }
description
string
No
Human-readable description of the contract
type
Yes
Contract type: RETIRE or WIPE
RETIRE
WIPE
Status: 201 Created
201 Created
401 Unauthorized
Missing or invalid token
403 Forbidden
Insufficient permissions
500 Internal Server Error
Unexpected server failure
Was this helpful?
{ "id": "63e3e5e8a01b3c001234abcd", "contractId": "0.0.4532001", "description": "Example retire contract", "type": "RETIRE", "owner": "example_user" }