endpoints
/glitterchain/index/dataset/{$dataset_name}
parameters
- dataset_name
client examples
// Request
curl -X GET "https://{$node}/glitterchain/index/dataset/library" -H "accept: application/json"
// Result
{
"dateset": {
"dataset_name": "library",
"work_status": "Service_Status_Stop",
"owner_address": "glitter104m7lftc25549vyn8zx78yz4hfh9vj8edxx725",
"expiration_time": "2024-12-31T09:31:27.891354039Z",
"hosts": "http://sg5.testnet.glitter.link:8085",
"manage_addresses": "glitter104m7lftc25549vyn8zx78yz4hfh9vj8edxx725",
"tables": [],
"sum_cpdt": "1000000000000000000",
"description": "{\"github\":\"xxx3.com\"}",
"update_time": "2024-09-24T14:51:54.784920591Z"
}
}
/glitterchain/index/datasets
client examples
// Request
curl -X GET "https://{$node}/glitterchain/glitterchain/index/datasets" -H "accept: application/json"
// Result
{
"datesets": {
"dataset_name": "library",
"work_status": "Service_Status_Stop",
"owner_address": "glitter104m7lftc25549vyn8zx78yz4hfh9vj8edxx725",
"expiration_time": "2024-12-31T09:31:27.891354039Z",
"hosts": "http://sg5.testnet.glitter.link:8085",
"manage_addresses": "glitter104m7lftc25549vyn8zx78yz4hfh9vj8edxx725",
"tables": [],
"sum_cpdt": "1000000000000000000",
"description": "{\"github\":\"xxx3.com\"}",
"update_time": "2024-09-24T14:51:54.784920591Z"
}
}
/glitterchain/index/cpdts
client examples
// Request
curl -X GET "https://{$node}/glitterchain/index/cpdts" -H "accept: application/json"
// Result
{
"CPDTs": [
{
"dataset_name": "library",
"consumer_address": "glitter1f3f3s528yht5uq2m8p5xnrqmvsedu95kjfsg3c",
"amount": "1000000000000000000"
},
{
"dataset_name": "sihui",
"consumer_address": "glitter1f3f3s528yht5uq2m8p5xnrqmvsedu95kjfsg3c",
"amount": "1000000000000000000"
}
],
"pagination": {
"next_key": null,
"total": "2"
}
}
glitterchain/index/cpdt/dataset/${dataset_name}
parameters
- dataset_name
client examples
// Request
curl -X GET "https://${node}glitterchain/index/cpdt/dataset/library" -H "accept: application/json"
// Result
{
"CPDTs": [
{
"dataset_name": "library",
"consumer_address": "glitter1f3f3s528yht5uq2m8p5xnrqmvsedu95kjfsg3c",
"amount": "1000000000000000000"
}
]
}
glitterchain/index/datasetexpiration
parameters
- dataset_name
client examples
// Request
curl -X GET "https://orlando-api.glitterprotocol.tech/glitterchain/index/datasetexpiration" -H "accept: application/json"
// Result
{
"datasets": [
{
"dataset_names": [
"TESTssDB"
],
"expiration_time": "2024-10-06T13:51:46.473160978Z"
},
{
"dataset_names": [
"testVone"
],
"expiration_time": "2024-11-01T12:56:01.571985461Z"
}
],
"pagination": {
"next_key": null,
"total": "9"
}
}
/glitterchain/consumers
parameters
- dataset_name
client examples
// Request
curl -X GET "https://{$node}/glitterchain/consumers" -H "accept: application/json"
// Result
{
"consumer": [
{
"consumer_address": "glitter1xs08zjspxttxmpj8sgsztq60cc0aq5kgzuj77j",
"CPDTs": [],
"description": ""
},
{
"consumer_address": "glitter1f3f3s528yht5uq2m8p5xnrqmvsedu95kjfsg3c",
"CPDTs": [
{
"dataset_name": "library",
"amount": "1000000000000000000"
},
{
"dataset_name": "sihui",
"amount": "1000000000000000000"
}
],
"description": ""
},
{
"consumer_address": "glitter1v877jah32ae7jpn734v42tvkt763lz66s7ksgy",
"CPDTs": [],
"description": ""
},
{
"consumer_address": "glitter1w8679rh5exuqxjy7f9eysc3yq4ruewx0cyfllh",
"CPDTs": [],
"description": ""
}
],
"pagination": {
"next_key": null,
"total": "4"
}
}
/glitterchain/consumers
parameters
- dataset_name
client examples
// Request
curl -X GET "https://{$node}/glitterchain/consumer/consumer_address/{your-counsumer-address}" -H "accept: application/json"
// Result
{
"consumer": {
"consumer_address": "glitter1f3f3s528yht5uq2m8p5xnrqmvsedu95kjfsg3c",
"CPDTs": [
{
"dataset_name": "library",
"amount": "1000000000000000000"
},
{
"dataset_name": "sihui",
"amount": "1000000000000000000"
}
],
"description": ""
}
}
/glitterchain/consumer/releasingCPDTs
parameters
- dataset_name
client examples
// Request
curl -X GET "https://{$node}/glitterchain/consumer/releasingCPDTs" -H "accept: application/json"
// Result
{
"releasingCPDTs": [
{
"consumer_address": "glitter1w8679rh5exuqxjy7f9eysc3yq4ruewx0cyfllh",
"dataset_name": "TESTshisiDB",
"entries": [
{
"creationHeight": "198940",
"completionTime": "2024-10-03T23:20:37.004716734Z",
"amount": "200000000000000000"
}
]
}
],
"pagination": {
"next_key": null,
"total": "1"
}
}
/glitterchain/consumer/releasingCPDTs
parameters
- dataset_name
client examples
// Request
curl -X GET "https://{$node}/glitterchain/consumer/releasingCPDTs" -H "accept: application/json"
// Result
{
"releasingCPDTs": [
{
"consumer_address": "glitter1w8679rh5exuqxjy7f9eysc3yq4ruewx0cyfllh",
"dataset_name": "TESTshisiDB",
"entries": [
{
"creationHeight": "198940",
"completionTime": "2024-10-03T23:20:37.004716734Z",
"amount": "200000000000000000"
}
]
}
],
"pagination": {
"next_key": null,
"total": "1"
}
}
glitterchain/consumer/releasingCPDT/consumer_address/{your-consumer-address}
parameters
- dataset_name
client examples
// Request
curl -X GET "https://orlando-api.glitterprotocol.tech/glitterchain/consumer/releasingCPDT/consumer_address/{your-consumer-address}" -H "accept: application/json"
// Result
{
"releasingCPDTs": [
{
"consumer_address": "glitter1w8679rh5exuqxjy7f9eysc3yq4ruewx0cyfllh",
"dataset_name": "TESTshisiDB",
"entries": [
{
"creationHeight": "198940",
"completionTime": "2024-10-03T23:20:37.004716734Z",
"amount": "200000000000000000"
}
]
}
]
}