Ana içeriğe geç

Node Ücreti Oluşturma

Bu endpoint, belirli bir node için ücret yapılandırması oluşturmanızı sağlar.

Endpoint

POST /v2/fees/nodes/:id

Path Parametreleri

ParametreTipAçıklama
idstringNode ID

İstek Gövdesi

{
"entity": 3,
"node_id": "680bdf195d63bcee848d38e6",
"value": {
"tokenization": {
"asset_tokenization": {
"id": 0,
"value": 10
},
"tokenized_asset_sales": {
"id": 0,
"value": 11
},
"management": {
"id": 0,
"value": 12
}
},
"secondary_market": {
"buy_order": {
"id": 0,
"value": 13
},
"sell_order": {
"id": 0,
"value": 14
},
"otc_sale": {
"id": 0,
"value": 15
}
},
"lending": {
"borrower": {
"id": 0,
"value": 16
},
"lending": {
"id": 0,
"value": 17
},
"liquidation": {
"id": 0,
"value": 18
}
}
},
"categories": null
}

İstek Gövdesi Parametreleri

ParametreTipAçıklama
entitynumberEntity ID
node_idstringNode ID
valueobjectÜcret yapılandırma değerleri
categoriesnullKategoriler (şu an kullanılmıyor)

Yanıt

Endpoint başarılı oluşturma durumunda içerik döndürmez.

Örnek

İstek

curl -X POST "https://api.example.com/v2/fees/nodes/680bdf195d63bcee848d38e6" \
-H "Content-Type: application/json" \
-d '{
"entity": 3,
"node_id": "680bdf195d63bcee848d38e6",
"value": {
"tokenization": {
"asset_tokenization": {
"id": 0,
"value": 10
},
"tokenized_asset_sales": {
"id": 0,
"value": 11
},
"management": {
"id": 0,
"value": 12
}
},
"secondary_market": {
"buy_order": {
"id": 0,
"value": 13
},
"sell_order": {
"id": 0,
"value": 14
},
"otc_sale": {
"id": 0,
"value": 15
}
},
"lending": {
"borrower": {
"id": 0,
"value": 16
},
"lending": {
"id": 0,
"value": 17
},
"liquidation": {
"id": 0,
"value": 18
}
}
},
"categories": null
}'

Yanıt

HTTP/1.1 204 No Content