GET/trusted-contracts-registry/v1/templates/:id
Gets the template corresponding to the ID.
Request
Path Parameters
The ID of the template.
Responses
- 200
- 400
- 404
- 500
Success
- application/json
- Schema
- Template
Schema
Audit URI
Beacon address
Contract hash
Template ID
Init selector
Whether the contract is active or not
Template name
Repository URI
Storage layout hash
Template version
{
"auditURI": "https://audit.example.com/sample-contract",
"beaconAddress": "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
"contractHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"id": "0x8c3bd36dd8151582a4d36d259a10c0642308d4747fe28a2575e466d9fbc54e7e",
"initSelector": "0xd1ec8bf7",
"isActive": true,
"name": "SampleContract-495e006501ff64fc8c325a0da420d19b",
"repoURI": "https://github.com/example/sample-contract",
"storageLayoutHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"version": "1.0.0"
}
Bad Request
- application/problem+json
- Schema
- Invalid {id} Parameter
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400 and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Bad Request",
"status": 400,
"detail": "[\"id must be 32 bytes encoded in hexadecimal and start with 0x\"]"
}
Not found
- application/problem+json
- Schema
- Contract Not Found
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400 and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Not found",
"status": 404,
"detail": "Not found"
}
Internal Server Error
- application/json
- Schema
- Internal Server Error
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400 and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Internal error",
"status": 500,
"detail": "Internal error"
}