Skip to main content

15. Other Utilities

Other Utilities


Get Content MD5

POST chain_queryMd5 (Calculate MD5 hash)
Parameters
nametypedata typedescription
contentoptionalstringGet MD5 of content (base64 encoded)
file1optionalstringGet MD5 of file content (complete file path)
Responses
http codecontent-typeresponse
0application/json{"info":"..."}

Response Fields:

  • info - MD5 hash string
Example cURL
{
"jsonrpc": "3.0",
"method": "chain_queryMd5",
"params": ["opcode=Other&subcode=Md5&content=&file1=", "encryp=none"],
"id": "7711b09d8b112406b4492e05"
}
Response Example
{
"jsonrpc": "3.0",
"id": "1208117ccdc1b3975305901b",
"result": {
"ret": "0",
"err": "",
"content": {
"info": "202cb962ac59075b964b0715"
}
}
}

Query Machine Code

POST chain_queryHardId (Get hardware ID)
Parameters

None

Responses
http codecontent-typeresponse
0application/json{"info":"..."}

Response Fields:

  • info - Machine code string
Example cURL
{
"jsonrpc": "3.0",
"method": "chain_queryHardId",
"params": [""],
"id": "1"
}
Response Example
{
"jsonrpc": "3.0",
"id": "1",
"result": {
"ret": "0",
"err": "",
"content": {
"info": "37e4cb5903503f3c6d4f5a88"
}
}
}