channelproduce produce
addTraceinfo
curl -s -X POST \
http://localhost:4000/channels/channelproduce/chaincodes/produce \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk0OTIzLCJ1c2VybmFtZSI6InByb2RfdXNlcl8zIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE2MTgyOTQ5MjR9.zEOEdPhOj4CRSoj6ppVmge_7N85F23n16LqpSzJDT54" \
-H "content-type: application/json" \
-d '{
"peers": ["peer0.org1.example.com"],
"fcn":"addTraceinfo",
"args":["prod_1","北京市农林科学院","2021-4-14","","","prod_111","100","施肥","于小竟"]
}'
curl -s -X GET \
"http://localhost:4000/channels/channelproduce/chaincodes/produce?peer=peer0.org1.example.com&fcn=readTraceinfo&args=%5B%22prod_1%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk0OTIzLCJ1c2VybmFtZSI6InByb2RfdXNlcl8zIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE2MTgyOTQ5MjR9.zEOEdPhOj4CRSoj6ppVmge_7N85F23n16LqpSzJDT54" \
-H "content-type: application/json"
curl -s -X GET \
"http://localhost:4000/channels/channelproduce/chaincodes/produce?peer=peer0.org1.example.com&fcn=queryTraceinfoBybatch&args=%5B%22prod_111%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk0OTIzLCJ1c2VybmFtZSI6InByb2RfdXNlcl8zIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE2MTgyOTQ5MjR9.zEOEdPhOj4CRSoj6ppVmge_7N85F23n16LqpSzJDT54" \
-H "content-type: application/json"
channelmain trace
addTraceinfo
curl -s -X POST \
http://localhost:4000/channels/channelmain/chaincodes/trace \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk0OTIzLCJ1c2VybmFtZSI6InByb2RfdXNlcl8zIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE2MTgyOTQ5MjR9.zEOEdPhOj4CRSoj6ppVmge_7N85F23n16LqpSzJDT54" \
-H "content-type: application/json" \
-d '{
"peers": ["peer0.org1.example.com"],
"fcn":"addTraceinfo",
"args":["prod_1","北京市农林科学院","2021-4-14","","prod_111","peer0.org1.example.com","produce","channelproduce"]
}'
curl -s -X GET \
"http://localhost:4000/channels/channelmain/chaincodes/trace?peer=peer0.org1.example.com&fcn=readTraceinfo&args=%5B%22prod_1%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk0OTIzLCJ1c2VybmFtZSI6InByb2RfdXNlcl8zIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE2MTgyOTQ5MjR9.zEOEdPhOj4CRSoj6ppVmge_7N85F23n16LqpSzJDT54" \
-H "content-type: application/json"
curl -s -X GET \
"http://localhost:4000/channels/channelmain/chaincodes/trace?peer=peer0.org1.example.com&fcn=queryTraceinfoBybatch&args=%5B%22prod_111%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk0OTIzLCJ1c2VybmFtZSI6InByb2RfdXNlcl8zIiwib3JnTmFtZSI6Ik9yZzEiLCJpYXQiOjE2MTgyOTQ5MjR9.zEOEdPhOj4CRSoj6ppVmge_7N85F23n16LqpSzJDT54" \
-H "content-type: application/json"
组织二节点读取trace数据
peer0.org2
readTraceinfo
curl -s -X GET \
"http://localhost:4000/channels/channelprocess/chaincodes/process?peer=peer0.org2.example.com&fcn=readTraceinfo&args=%5B%22proc_420370122003000001%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk1NTI5LCJ1c2VybmFtZSI6InByb2NfdXNlcl8xIiwib3JnTmFtZSI6Ik9yZzIiLCJpYXQiOjE2MTgyOTU1MzB9.wZfyNMigKN9uPo2XXiaJA-X0vPLX9k0vwaMtteTo9wA" \
-H "content-type: application/json"
组织三节点读取trace数据
peer0.org3
readTraceinfo
curl -s -X GET \
"http://localhost:4000/channels/channellogistics/chaincodes/logistics?peer=peer0.org3.example.com&fcn=readTraceinfo&args=%5B%22log_520370122003000001%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk2NDE1LCJ1c2VybmFtZSI6ImxvZ2lzX3VzZXJfMSIsIm9yZ05hbWUiOiJPcmczIiwiaWF0IjoxNjE4Mjk2NDE2fQ.B-9Hvsr50J8KzVMUr1aVIj-e-kweuLgd-nZAFyqg0xc" \
-H "content-type: application/json"
组织四节点读取trace数据
peer0.org4
readTraceinfo
curl -s -X GET \
"http://localhost:4000/channels/channelsales/chaincodes/sales?peer=peer0.org4.example.com&fcn=readTraceinfo&args=%5B%22sales_620370122003000001%22%5D" \
-H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEwMDAxNjE4Mjk2Nzk0LCJ1c2VybmFtZSI6InNhbGVzX3VzZXJfMSIsIm9yZ05hbWUiOiJPcmc0IiwiaWF0IjoxNjE4Mjk2Nzk1fQ.yoRHktW9VpmwXU04hlmq8ahiBQTRTK7LMFu1v4ZPZgc" \
-H "content-type: application/json"