Hyperledger智能合约Hello World示例程序(2)

调用HelloWorld的REST请求

{ "jsonrpc": "2.0", "method": "invoke", "params": { "type": 1, "chaincodeID":{ "name":"mycc" }, "ctorMsg": { "function":"invoke", "args":[] }, "secureContext": "jim" }, "id": 3 }

以及查询HelloWorld的REST请求

{ "jsonrpc": "2.0", "method": "query", "params": { "type": 1, "chaincodeID":{ "name":"mycc" }, "ctorMsg": { "function":"query", "args":[] }, "secureContext": "jim" }, "id": 5 }

Hyperledger智能合约Hello World示例程序

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/dd97cf9a137f4531401db406c11ff2fe.html