Light Node API
Last updated
Last updated
You can follow the steps in Light Node Deployment Document to start Meeda's light node. Light nodes provide some http API interfaces that ordinary users need to access the Meeda network. The default listening port of this service is 8082, that is, the baseURL is https://localhost:8082; all the following request URLs should be changed according to the actual situation.
Request Url: https://localhost:8082/putObject
Request Method: POST
Request Header Information:
Param | Value |
---|---|
Request Params(Json):
Param | Value | Type | Required | Description |
---|---|---|---|---|
Return Params:
Param | Value | Type | Required | Description |
---|---|---|---|---|
Return Example:
Request Url: https://localhost:8082/getObject?id={id}
Request Method: GET
Request Header Information:
none
Request Params:
none
Request Params(Data):
Request Url: https://localhost:8082/getObjectInfo?id={id}
Request Method: GET
Request Header Information:
none
Request Params:
none
Request Params(JSON):
Request Url: https://localhost:8082/getProofInfo?id={id}
Request Method: GET
Request Header Information:
none
Request Params:
none
Request Params(JSON):
Param | Description |
---|---|
Param | Description |
---|---|
Param | Description |
---|---|
Content-Type
application/json
data
data to be uploaded
String
yes
data to be uploaded represented using hexadecimal encoding
id
file id
string
yes
file unique identifier
contentType
data type
data
data binary value
id
data unique indentifier
size
data size
expiration
data expiration time
id
data unique indentifier
selectedNumber
the number of times data has been selected to participate in KZG certification
provedSuccessNumber
the number of times the storage node uploaded the correct certification when the data was selected to participate in the KZG certification