OUTCOME · Create or advance
What changes
Creates or advances only the launch resource described by this contract after authorization, validation, policy, and idempotency gates pass.
v2Smart-contract lifecycle
/api/v2/contractsPURPOSE + BUSINESS CONTEXT
WHEN THIS CALL IS USEFUL
Call this when a contract author, authority reviewer, deployment operator, or contract-lifecycle agent needs to apply the documented launch transition after re-reading the current authoritative state so it can move a contract launch through draft, analysis, governance binding, freeze, evidence, and deployment preparation without collapsing those gates.
OUTCOME · Create or advance
Creates or advances only the launch resource described by this contract after authorization, validation, policy, and idempotency gates pass.
WHY IT MATTERS
ISOLATION + AUTHORITY
Launch owner, workspace, source artifact, analysis, declared authority, governance binding, frozen revision, deployment preparation, target network, and runtime deployment remain distinct. Analysis or preparation does not deploy code, freezing does not approve it, and no contract route grants wallet, publisher, matching, trading, or external-domain authority.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
The exact deployed parameters, schemas, responses, security requirements, and Hybrid-Chain agent metadata are authoritative at this operation's production OpenAPI JSON Pointer. The readable tables below add integration guidance; the deployed OpenAPI controls if guidance and the machine contract ever differ.
Open the authoritative production contract ↗EXTENDED INTEGRATION GUIDANCE
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the contracts:write scope.EXAMPLEBearer hc_live_…
Idempotency-KeyheaderRequiredASCII string · 1–128Caller-generated key reused for every retry of the same logical mutation.EXAMPLElaunch-treasury-v1-001
slugbodyRequiredstring · 1–160Lowercase URL-safe name, unique within the workspace.EXAMPLEtreasury-settlement-v1
namebodyRequiredstring · 1–160Human-readable launch name.EXAMPLETreasury Settlement
descriptionbodyOptionalstring · 0–1000Purpose and operating boundary.EXAMPLEGoverned settlement contract.
networkIdbodyRequiredidentifierTarget Hybrid-Chain network.EXAMPLEhybrid-devnet
chainIdbodyRequiredidentifierTarget chain identifier.EXAMPLEhybrid-1
contractKindbodyRequiredGENERAL | TOKEN | HYBRIDSCRIPTContract runtime kind.EXAMPLEHYBRIDSCRIPT
packageHashbodyRequiredsha256 digestImmutable package commitment.EXAMPLEsha256:1111111111111111111111111111111111111111111111111111111111111111
sourceHashbodyRequiredsha256 digestReadable source commitment.EXAMPLEsha256:2222222222222222222222222222222222222222222222222222222222222222
artifactHashbodyRequiredsha256 digestCompiled artifact commitment.EXAMPLEsha256:3333333333333333333333333333333333333333333333333333333333333333
manifestHashbodyRequiredsha256 digestBuild manifest commitment.EXAMPLEsha256:4444444444444444444444444444444444444444444444444444444444444444
compilerProfilebodyRequiredidentifierPinned deterministic compiler profile.EXAMPLEhybridscript-0.1
factoryAddressbodyOptionalstring | nullOptional governed deployment factory.
constructorArgsHashbodyRequiredsha256 digestConstructor argument commitment.
initialStateHashbodyRequiredsha256 digestInitial-state commitment.
runtimePolicyHashbodyRequiredsha256 digestSigned runtime-policy commitment.
deploymentSaltbodyRequiredidentifierDeterministic address salt.EXAMPLEtreasury-settlement-001
xuLimitbodyRequiredinteger · 1–10¹⁵Execution Unit ceiling; never gas.EXAMPLE100000
capabilitiesbodyRequiredenum[]Declared UPGRADEABLE, MINTABLE, BURNABLE, PAUSABLE, TREASURY, AUTOMATION, or ORACLE capabilities.
safeguardsbodyRequiredobjectTimelocks, caps, emergency pause, recovery delay, source verification, and deterministic-build controls.
authoritiesbodyRequiredrole → wallet mapExact activated MPC wallet assignment for every required authority role.
expectedContractAddressbodyOptionalstring | nullOptional independently calculated deterministic address.
REQUEST
{
"slug": "treasury-settlement-v1",
"name": "Treasury Settlement",
"description": "Governed HybridScript settlement contract.",
"networkId": "hybrid-devnet",
"chainId": "hybrid-1",
"contractKind": "HYBRIDSCRIPT",
"packageHash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
"sourceHash": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
"artifactHash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
"manifestHash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"compilerProfile": "hybridscript-0.1",
"factoryAddress": null,
"constructorArgsHash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
"initialStateHash": "sha256:6666666666666666666666666666666666666666666666666666666666666666",
"runtimePolicyHash": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
"deploymentSalt": "treasury-settlement-001",
"xuLimit": 100000,
"capabilities": [
"PAUSABLE",
"TREASURY"
],
"safeguards": {
"upgradeTimelockSeconds": 86400,
"mintCap": null,
"emergencyPause": true,
"recoveryDelaySeconds": 172800,
"sourceVerified": true,
"deterministicBuild": true
},
"authorities": {
"DEPLOYMENT": "wallet-deploy",
"POLICY": "wallet-policy",
"RECOVERY": "wallet-recovery",
"PAUSE": "wallet-pause",
"UNPAUSE": "wallet-pause",
"TREASURY": "wallet-treasury"
},
"expectedContractAddress": null
}RESPONSES
{
"launch": {
"launchId": "9b51ed4c9c8f4aec85d1bd5520e40557",
"slug": "treasury-settlement-v1",
"name": "Treasury Settlement",
"description": "Governed HybridScript settlement contract.",
"networkId": "hybrid-devnet",
"chainId": "hybrid-1",
"contractKind": "HYBRIDSCRIPT",
"packageHash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
"sourceHash": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
"artifactHash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
"manifestHash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
"compilerProfile": "hybridscript-0.1",
"factoryAddress": null,
"constructorArgsHash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
"initialStateHash": "sha256:6666666666666666666666666666666666666666666666666666666666666666",
"runtimePolicyHash": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
"deploymentSalt": "treasury-settlement-001",
"xuLimit": 100000,
"capabilities": [
"PAUSABLE",
"TREASURY"
],
"safeguards": {
"upgradeTimelockSeconds": 86400,
"mintCap": null,
"emergencyPause": true,
"recoveryDelaySeconds": 172800,
"sourceVerified": true,
"deterministicBuild": true
},
"authorities": {
"DEPLOYMENT": "wallet-deploy",
"POLICY": "wallet-policy",
"RECOVERY": "wallet-recovery",
"PAUSE": "wallet-pause",
"UNPAUSE": "wallet-pause",
"TREASURY": "wallet-treasury"
},
"acceptedRiskCodes": [],
"launchIntentHash": null,
"trustScore": null,
"trustGrade": null,
"state": "DRAFT",
"expectedContractAddress": null,
"contractAddress": null,
"bindings": [],
"events": [],
"chainEvidence": [],
"created": "2026-08-10T21:00:00Z",
"updated": "2026-08-10T21:00:00Z"
}
}{
"code": "invalid_json",
"message": "The request or required headers are malformed."
}invalid_json{
"code": "invalid_credentials",
"message": "The bearer credential is missing or invalid."
}invalid_credentials{
"code": "insufficient_scope",
"message": "The credential lacks the required contract scope."
}insufficient_scope{
"code": "contract_not_found",
"message": "The requested launch does not exist in the caller's workspace."
}contract_not_found{
"code": "contract_conflict",
"message": "The request conflicts with immutable launch state or existing governance evidence."
}contract_conflict{
"code": "invalid_request",
"message": "The canonical contract request failed validation."
}invalid_request{
"code": "contract_registry_unavailable",
"message": "The authoritative contract registry is unavailable."
}contract_registry_unavailableOPERATIONAL NOTES
This route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-09-11T06:35:11.572Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation ↗Return to the V2 directory ↗