基本信息
Path: /api/blockchain/externalBlockChain
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
access_token | text | 是 | $2y$10$55BehsVv0ZlJDiQ6zKqBVen/B8X1SHJ6vjCnpV7EdS7Wd34Rgof5a | 验证token |
app_id | text | 是 | cade4e832627b4f6 | 应用ID |
timestamp | text | 是 | 1577360235 | 时间戳 |
nonce | text | 是 | b6202224c37da1539b9d5d462f8c2c8a | md5(时间戳) |
signature | text | 是 | c02b577ca8258c89d157356741a99e46 | 签名 |
user_identify | text | 是 | test_01 | 用户标识 |
private_key | text | 是 | 3e9f0a6c73cf948f9e13475c4f3d8bb31c1dcb4afb73683b7f351912a9cc463c | 生成上链签名必要的秘钥 |
works_name | text | 是 | 测试作品名 | 作品名 |
file_md5 | text | 是 | c2dbb895a66c3ca924ccdbea49fa6884 | 文件md5 |
upload_user | text | 是 | 测试人员A | 上传人 |
upload_user_id | text | 是 | test_01 | 上传者ID |
file_identify | text | 是 | test_file_01 | 文件标识(用于异步通知) |
返回数据
{
"data": {
"file_identify": "test_file_01",
"ev_id": "3_2_01af7d36c2832908fd4c92661f041af2",
"ev_hash": "3e9f0a6c73cf948f9e13475c4f3d8bb31c1dcb4afb73683b7f351912a9cc463c",
"tx_hash": "ac02ed7584bd457adfead4d11cb96393c05ef9cd70e5f9b7050a483d154f1cb7",
"works_block_result": "{\"previousHash\":\"fd7fddc76a3224aa775a4479056e7930485af8d9fc17136c8b16a917380e01ed\",\"dataHash\":\"f1a6cc7bc3d7cedae924dfc6881da37322003a757e4d408a62d729a0e4f0bba9\",\"time\":\"2019-12-11 16:42:52\",\"transactionId\":\"ac02ed7584bd457adfead4d11cb96393c05ef9cd70e5f9b7050a483d154f1cb7\",\"channelId\":\"che1b7dfbda7374f0da95c245266ac11b5\",\"height\":802}"
},
"status": 200,
"time": 1577237646,
"msg": "上链成功"
}