链码查询
peer chaincode query -C assetschannel -n assets -c '{"Args":["queryUser", "user1"]}' peer chaincode query -C assetschannel -n assets -c '{"Args":["queryAsset", "asset1"]}' peer chaincode query -C assetschannel -n assets -c '{"Args":["queryUser", "user2"]}' peer chaincode query -C assetschannel -n assets -c '{"Args":["queryAssetHistory", "asset1"]}' peer chaincode query -C assetschannel -n assets -c '{"Args":["queryAssetHistory", "asset1", "all"]}'
上面是您在memo.md
中写的命令,如果我这样改也应该可以吧?
peer chaincode invoke -C assetschannel -n assets -c '{"Args":["queryUser", "user1"]}'
peer chaincode invoke -C assetschannel -n assets -c '{"Args":["queryAsset", "asset1"]}'
peer chaincode invoke -C assetschannel -n assets -c '{"Args":["queryUser", "user2"]}'
peer chaincode invoke -C assetschannel -n assets -c '{"Args":["queryAssetHistory", "asset1"]}'
peer chaincode invoke -C assetschannel -n assets -c '{"Args":["queryAssetHistory", "asset1", "all"]}'