Smart Contract Registry (0.0.24)
Download OpenAPI specification:Download
Get the Smart Contracts available in a project Deprecated
Authorizations:
query Parameters
project required | string The project that you wish to filter by |
resourceId | string Default: "" The resourceId of the project that you want to return |
size | integer <int> [ 5 .. 100 ] Default: 20 The number of items to return per page |
page | integer <int> >= 0 Default: 0 The page number that you want to return |
sort | Array of strings Example: sort=name,name,asc,name,desc The sort order that you want to return. You can specify one or more comma-separated sort keys, each followed by
an optional sort direction of either If you want to sort in descending order, append Examples of valid sort query parameters include:
|
Responses
Response samples
- 200
{- "contentType": "SmartContractPage"
}
Registers a new version of a Smart Contract Deprecated
Authorizations:
Request Body schema: application/json
compilationDetails | string |
compileVersion | string |
contractInstanceID | string |
object (ContractSpecification) | |
id | integer <int64> |
ledgerID | string |
name | string |
Array of objects (Property) | |
resourceId | string |
Array of objects (ContractType) |
Responses
Request samples
- Payload
{- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}
Response samples
- 201
{- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}
Get a Smart Contract by its ID Deprecated
Authorizations:
path Parameters
smartContractId required | string The ID of the Smart Contract that you want to perform actions on |
Responses
Response samples
- 200
{- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}
Deploy a Smart Contract Deprecated
Authorizations:
Request Body schema: application/json
args | list |
id | integer <int64> |
ledgerId | string |
name | string |
tag | string |
templateId | string |
walletId | string |
walletPassword | string |
Responses
Request samples
- Payload
{- "args": null,
- "id": 0,
- "ledgerId": "string",
- "name": "string",
- "tag": "string",
- "templateId": "string",
- "walletId": "string",
- "walletPassword": "string"
}
Response samples
- 200
{- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}
Updates the properties of a Smart Contract Deprecated
Authorizations:
Request Body schema: application/json
compilationDetails | string |
compileVersion | string |
contractInstanceID | string |
object (ContractSpecification) | |
id | integer <int64> |
ledgerID | string |
name | string |
Array of objects (Property) | |
resourceId | string |
Array of objects (ContractType) |
Responses
Request samples
- Payload
{- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}
Response samples
- 200
{- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}
Creates a new version of a Smart Contract Deprecated
Authorizations:
Request Body schema: application/json
checksum | string |
compilationLanguage | string |
compilationSpecification | string |
compilationStatus | string |
object (ContractTemplate) | |
dateCreated | integer <int64> |
dateUpdated | integer <int64> |
description | string |
hasPreprocessing | boolean |
id | integer <int64> |
object (LedgerTechnology) | |
preCompilationSpecification | string |
tag | string |
targetCompilationVersion | string |
Responses
Request samples
- Payload
{- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}
Response samples
- 201
{- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}
Gets the Contract Specification in a template by its tag Deprecated
Authorizations:
path Parameters
templateId required | string The Template Id that you want to perform actions with |
tag required | string The Tag that you want to perform actions with |
Responses
Response samples
- 200
{- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}
Lists all the contract specifications in a Template Deprecated
Authorizations:
path Parameters
templateId required | string The Template Id that you want to perform actions with |
Responses
Response samples
- 200
[- {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}
]
Lists all the contract templates in a project Deprecated
Authorizations:
query Parameters
project required | string The project that you wish to filter by |
resourceId | string Default: "" The resourceId of the project that you want to return |
size | integer <int> [ 5 .. 100 ] Default: 20 The number of items to return per page |
page | integer <int> >= 0 Default: 0 The page number that you want to return |
sort | Array of strings Example: sort=name,name,asc,name,desc The sort order that you want to return. You can specify one or more comma-separated sort keys, each followed by
an optional sort direction of either If you want to sort in descending order, append Examples of valid sort query parameters include:
|
Responses
Response samples
- 200
{- "pageContent": [
- {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}
], - "contentType": "ContractTemplatePage",
- "pageElements": 0,
- "pageNumber": 0,
- "totalElements": 0,
- "totalPages": 0
}
Creates a new version of a Contract Template Deprecated
Authorizations:
Request Body schema: application/json
contractTemplateID | string |
description | string |
id | integer <int64> |
name | string |
resourceId | string |
Responses
Request samples
- Payload
{- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}
Response samples
- 201
{- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}
Registers a new Token Deprecated
Authorizations:
Request Body schema: application/json
object (SmartContract) | |
id | integer <int64> |
name | string |
resourceId | string |
ticker | string |
tokenID | string |
Responses
Request samples
- Payload
{- "contractInstance": {
- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "id": 0,
- "name": "string",
- "resourceId": "string",
- "ticker": "string",
- "tokenID": "string"
}
Response samples
- 201
{- "contractInstance": {
- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "id": 0,
- "name": "string",
- "resourceId": "string",
- "ticker": "string",
- "tokenID": "string"
}
Get a Token by its Name Deprecated
Authorizations:
path Parameters
tokenId required | string The tokenId of the token you want to perform and action |
Responses
Response samples
- 200
{- "contractInstance": {
- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "id": 0,
- "name": "string",
- "resourceId": "string",
- "ticker": "string",
- "tokenID": "string"
}
Response samples
- 200
[- {
- "contractInstance": {
- "compilationDetails": "string",
- "compileVersion": "string",
- "contractInstanceID": "string",
- "contractSpecification": {
- "checksum": "string",
- "compilationLanguage": "string",
- "compilationSpecification": "string",
- "compilationStatus": "string",
- "contractTemplate": {
- "contractTemplateID": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "resourceId": "string"
}, - "dateCreated": 0,
- "dateUpdated": 0,
- "description": "string",
- "hasPreprocessing": true,
- "id": 0,
- "ledgerTechnology": {
- "id": 0,
- "ledgerTechnologyID": "string"
}, - "preCompilationSpecification": "string",
- "tag": "string",
- "targetCompilationVersion": "string"
}, - "id": 0,
- "ledgerID": "string",
- "name": "string",
- "properties": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string",
- "scope": {
- "id": 0,
- "name": "string"
}
}, - "value": "string"
}
], - "resourceId": "string",
- "types": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "id": 0,
- "name": "string",
- "resourceId": "string",
- "ticker": "string",
- "tokenID": "string"
}
]
Upload smart contract source code Deprecated
Authorizations:
path Parameters
templateId required | string The Template Id that you want to perform actions with |
tag required | string The Tag that you want to perform actions with |
Request Body schema: multipart/form-data
sourceCode required | string <binary> |