Deploy Contracts
Deploys smart contracts for a node, configuring contract components for tokenization, secondary market, and lending with the specified contract parameters.
Request
POST /v2/admin/node/{node_id}/deploy/contracts
Parameters
| Name | Type | In | Description |
|---|---|---|---|
node_id | string | path | Required. The ID of the node to deploy contracts for |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Content-Type | Required. application/json |
Request Body
| Field | Type | Description |
|---|---|---|
value | object | Contract configuration values |
Value Object
| Field | Type | Description |
|---|---|---|
tokenization | object | Configuration values related to tokenization |
secondary_market | object | Configuration values related to secondary market |
lending | object | Configuration values related to lending |
Tokenization Object
| Field | Type | Description |
|---|---|---|
asset_tokenization.value | number | Commission value for asset tokenization |
tokenized_asset_sales.value | number | Commission value for tokenized asset sales |
management.value | number | Commission value for management |
Secondary Market Object
| Field | Type | Description |
|---|---|---|
buy_order.value | number | Commission value for buy orders |
sell_order.value | number | Commission value for sell orders |
otc_sale.value | number | Commission value for over-the-counter sales |
Lending Object
| Field | Type | Description |
|---|---|---|
borrower.value | number | Commission value for borrowers |
lending.value | number | Commission value for lending |
liquidation.value | number | Commission value for liquidation |
Example
curl --request POST \
--url '\{\{baseUrl\}\}/v2/admin/node/67d6c447f47ff3adafda700d/deploy/contracts' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data '{
"value": {
"tokenization": {
"asset_tokenization": {
"value": 5
},
"tokenized_asset_sales": {
"value": 6.8
},
"management": {
"value": 7.0
}
},
"secondary_market": {
"buy_order": {
"value": 8.5
},
"sell_order": {
"value": 0.5
},
"otc_sale": {
"value": 1.0
}
},
"lending": {
"borrower": {
"value": 0.75
},
"lending": {
"value": 0.5
},
"liquidation": {
"value": 2.0
}
}
}
}'
Response
{
"data": {}
}
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid request body |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - Node ID does not exist |
| 500 | Internal Server Error |