基本信息
Path: /api/blockchain/bindUserBlockChain
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
signature | text | 是 | 90b7a0abc1737fb68a6d3c26b990ca7a | 签名 |
app_id | text | 是 | cade4e832627b4f6 | 应用ID |
user_identify | text | 是 | 2 | 用户标识 |
timestamp | text | 是 | 1577330898 | 时间戳 |
nonce | text | 是 | d4d37f05a8a7c4eb21668b6f36dacc11 | md5(时间戳) |
access_token | text | 是 | $2y$10$eC0xMg0YSNAsJMulOhV02eiMQ1tcQUJu7HdgAKzjgJyKH04QeNhUm | 请求token以后的参数 |
返回数据
{
"data": {
"public_key": "046b7a26a99a46179a0686d549abfd3a0c2e4d570089458fdb004c9880c66b6434ecb5bf6c1ad979405c193f748c557e173c5f3ffbb07b48488840799b4e89f082",
"private_key": "3e9f0a6c73cf948f9e13475c4f3d8bb31c1dcb4afb73683b7f351912a9cc463c",
"user_hash": "ac02ed7584bd457adfead4d11cb96393c05ef9cd70e5f9b7050a483d154f1cb7",
"user_block_result": "{\"previousHash\":\"fd7fddc76a3224aa775a4479056e7930485af8d9fc17136c8b16a917380e01ed\",\"dataHash\":\"f1a6cc7bc3d7cedae924dfc6881da37322003a757e4d408a62d729a0e4f0bba9\",\"time\":\"2019-12-11 16:42:52\",\"transactionId\":\"ac02ed7584bd457adfead4d11cb96393c05ef9cd70e5f9b7050a483d154f1cb7\",\"channelId\":\"che1b7dfbda7374f0da95c245266ac11b5\",\"height\":802}"
},
"status": 200,
"time": 1577237646,
"msg": "上链成功"
}