-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathqueryAsset.sh
More file actions
17 lines (14 loc) · 798 Bytes
/
Copy pathqueryAsset.sh
File metadata and controls
17 lines (14 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
#
export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_LOCALMSPID="Org1MSP"
export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/../organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
export CORE_PEER_MSPCONFIGPATH=${PWD}/../organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
export CORE_PEER_ADDRESS=localhost:7051
export PATH=$PATH:$PWD/../../bin/
export FABRIC_CFG_PATH=$PWD/../../config/
export ORDERER_CA=${PWD}/../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
peer chaincode query -C mychannel -n estate -c '{"Args":["GetAllAssets"]}'
#peer chaincode query -C mychannel -n basic -c '{"Args":["GetAllAssets"]}'