{"action":"opened","issue":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/1342","repository_url":"https://api.github.com/repos/hyperledger/fabric","labels_url":"https://api.github.com/repos/hyperledger/fabric/issues/1342/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/fabric/issues/1342/comments","events_url":"https://api.github.com/repos/hyperledger/fabric/issues/1342/events","html_url":"https://github.com/hyperledger/fabric/issues/1342","id":152979087,"number":1342,"title":"How to get query chaincode after CLI deploy?","user":{"login":"WillZhuang","id":7720620,"avatar_url":"https://avatars.githubusercontent.com/u/7720620?v=3","gravatar_id":"","url":"https://api.github.com/users/WillZhuang","html_url":"https://github.com/WillZhuang","followers_url":"https://api.github.com/users/WillZhuang/followers","following_url":"https://api.github.com/users/WillZhuang/following{/other_user}","gists_url":"https://api.github.com/users/WillZhuang/gists{/gist_id}","starred_url":"https://api.github.com/users/WillZhuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillZhuang/subscriptions","organizations_url":"https://api.github.com/users/WillZhuang/orgs","repos_url":"https://api.github.com/users/WillZhuang/repos","events_url":"https://api.github.com/users/WillZhuang/events{/privacy}","received_events_url":"https://api.github.com/users/WillZhuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-04T10:23:59Z","updated_at":"2016-05-04T10:23:59Z","closed_at":null,"body":"First I saw:\r\n\r\n[> The query request requires the client to supply a name parameter, which was previously returned in the response from the deploy transaction. The response to a query request depends on the chaincode implementation.](https://github.com/hyperledger/fabric/blob/master/docs/protocol-spec.md#6213-chaincode-api)\r\n\r\nIt needs name parameter, which was previously returned in the response from the deploy transaction.\r\nIf somebody uses CLI to deploy chaincode like below:\r\n`./peer chaincode deploy -p github.com/hyperledger/fabric/example/chaincode/go/chaincode_example02 -c '{\"Function\":\"init\", \"Args\": [\"a\",\"100\", \"b\", \"200\"]}'`\r\nHow to get the hashing code returned in the response from the deploy transaction?"}}