Skip to main content

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

NameTypeInDescription
node_idstringpathRequired. The ID of the node to deploy contracts for

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. application/json

Request Body

FieldTypeDescription
valueobjectContract configuration values

Value Object

FieldTypeDescription
tokenizationobjectConfiguration values related to tokenization
secondary_marketobjectConfiguration values related to secondary market
lendingobjectConfiguration values related to lending

Tokenization Object

FieldTypeDescription
asset_tokenization.valuenumberCommission value for asset tokenization
tokenized_asset_sales.valuenumberCommission value for tokenized asset sales
management.valuenumberCommission value for management

Secondary Market Object

FieldTypeDescription
buy_order.valuenumberCommission value for buy orders
sell_order.valuenumberCommission value for sell orders
otc_sale.valuenumberCommission value for over-the-counter sales

Lending Object

FieldTypeDescription
borrower.valuenumberCommission value for borrowers
lending.valuenumberCommission value for lending
liquidation.valuenumberCommission 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 CodeDescription
200Success
400Bad Request - Invalid request body
401Unauthorized - Invalid or missing authentication token
404Not Found - Node ID does not exist
500Internal Server Error