查询区块
10.60.248.18:7050/chain/blocks/1
注册
{
"Account": {
"User_Name": "18854882703",
"Password": "123456789",
"Metadata": "自定义字段111",
"User_Type": "2",
"Real_Name": "黄03",
"Certi_Type": "2",
"Certi_Code": "370902199905030911",
"Birthday": "1999-07-30",
"Email": "2700192qq.com",
"Address": "1111",
"Status": "1",
"Source": "Z001"
},
"Access": {
"App_id": "1232jerf3423e132efe3f324f32",
"Access_tocken": "43g34f3f2f234f34f34"
}
}
{
"id":5,
"jsonrpc":"2.0",
"method":"invoke",
"params":{
"chaincodeID":{
"name":"lpspoint"
},
"ctorMsg":{
"args":[
"eyJBY2NvdW50Ijp7IlVzZXJfTmFtZSI6IjE4ODU0ODgyNzAzIiwiUGFzc3dvcmQiOiIxMjM0NTY3ODkiLCJNZXRhZGF0YSI6IuiHquWumuS5ieWtl+autTExMSIsIlVzZXJfVHlwZSI6IjIiLCJSZWFsX05hbWUiOiLpu4QwMyIsIkNlcnRpX1R5cGUiOiIyIiwiQ2VydGlfQ29kZSI6IjM3MDkwMjE5OTkwNTAzMDkxMSIsIkJpcnRoZGF5IjoiMTk5OS0wNy0zMCIsIkVtYWlsIjoiMjcwMDE5MnFxLmNvbSIsIkFkZHJlc3MiOiIxMTExIiwiU3RhdHVzIjoiMSIsIlNvdXJjZSI6IlowMDEifX0="
],
"function":"registerUser"
},
"secureContext":"jim",
"type":1
}
}
查询每笔交易
{
"jsonrpc": "2.0",
"method": "query",
"params": {
"type": 1,
"chaincodeID":{
"name":"lpspoint"
},
"ctorMsg": {
"function":"showOneTrans",
"args":["eyJPbmVUcmFuc1ByYW0iOnsiUWhfQWRkcmVzcyI6Ijk0YzNhY2I3NTAwNmZmMmM4YzA1MTI2MmRkNzYxNzg0ODAwY2QwN2QiLCJBc3NldF9jb2RlIjoiY2U0MjhlY2RmYWJhY2U1NmUzNDlkZjIxOTllZGJkZjgzZTI0ZmQyNiIsIlRyYWRlX25vIjoiM0FBNDExMTEifX0="]
},
"secureContext": "jim"
},
"id": "5"
}
查询资金账户
账户 资金账号 用户类型
{
"jsonrpc": "2.0",
"method": "query",
"params": {
"type": 1,
"chaincodeID":{
"name":"lpspoint"
},
"ctorMsg": {
"function":"showOneAsset",
"args":["eyJTaG93T25lQXNzZXRNb3VudERhdGEiOnsiQXNzZXRfSXNzdWVyIjoiMjFhODE1NjI1M2U3NTIyYzIzNmY1MTNkNmY2M2U4ZjA1ZDU4MzhlOCIsIkFzc2V0X2NvZGUiOiJjZTQyOGVjZGZhYmFjZTU2ZTM0OWRmMjE5OWVkYmRmODNlMjRmZDI2IiwiVXNlcl9UeXBlIjoiMSJ9fQ=="]
},
"secureContext": "jim"
},
"id": "5"
}
查看用户信息
用于注册后 查看是否注册成功,或者 登录 使用 (暂时)
{
"jsonrpc": "2.0",
"method": "query",
"params": {
"type": 1,
"chaincodeID":{
"name":"lpspoint"
},
"ctorMsg": {
"function":"ShowRegisterUser",
"args":["eyJTaG93VXNlclBhcmFtIjp7IlVzZXJfTmFtZSI6IjE4ODU0ODgyNzAzIiwiUGFzc3dvcmQiOiJoYWhhaGEifX0="]
},
"secureContext": "jim"
},
"id": "5"
}