Questions tagged [hyperledger-chaincode]
448 questions
0
votes
2 answers
Connecting remote fabric network with client application
I'm trying to connect client application to fabric-network deployed on remote cloud instance using fabric node SDK. For this, I modified my connection profile with IP address of deployed instance. Everything works fine until submitting transaction…

ajay
- 328
- 1
- 5
- 17
0
votes
1 answer
Can we customize the transaction type or prepend some code format to block in the chaincode to determine the transaction type?
Blocks in hyperledger comprises of fields like header, data and metadata. Block hash doesn't include metadata so can it be changed to have asset type definition to determine the kind of transaction in the block.

Prachi Gupta
- 27
- 4
0
votes
1 answer
CORE_PEER_ADDRESS in chaincode-docker-devmode
I am following the tutorial Chaincode for Developers and in the section Testing Using dev mode in Terminal 2 there is the following instantiation of the environment variable
CORE_PEER_ADDRESS=peer:7052
Could you please tell me what is the purpose…

bunjee
- 11
- 1
- 5
0
votes
1 answer
When writing chaincode on Fabric, am I limited to the functions defined by the chaincode stub?
For instance, when I start a js project with the VScode Hyperledger plugin, I get a smart contract like this:
onst { Contract } = require('fabric-contract-api');
class MyAssetContract extends Contract {
//****I added stuff */
async…

KaneHarry729
- 95
- 1
- 2
- 12
0
votes
1 answer
Invoking java chaincode from another java chaincode
Is there a function that enables me to invoke or query another chaincode in Java. The Go equivalent for what I am looking: func (stub *ChaincodeStub) InvokeChaincode.

Sanjay S B
- 259
- 2
- 15
0
votes
1 answer
[Hyperledger-Composer]Attempt to get property owner on an InvalidRelationship is not allowed - ACL Issue
I am getting bellow error while playing around Hyperledger Composer.
{
"$class": "org.property.registration.purchaseProperty",
"propertyListing":
"resource:org.property.registration.PropertyListing#PL001"
}
Error: attempt to get property…
0
votes
1 answer
How to build java chaincode behind proxy
Does anyone know how to build java chaincode behind proxy?
On instantiating a java chaincode behind proxy I'm getting the following error.
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error…

gunso
- 1
0
votes
1 answer
How does shim.GetStateByPartialCompositeKey iterator works in this code?
I am writing the chaincode in which I am putting some data into ledger and then tried to list it using shim.GetStateByPartialCompositeKey() where I get the list of my data from the iterator. Now I want to sort my data according to the…

Abhishek
- 1
- 1
- 4
0
votes
2 answers
Get MSPID from a command line request in chaincode
I'm currently trying to evaluate the requester MSPID to authorize a specific list of Members being able to request a function on chaincode, but when I ask for "stub.getCreator().mspId" it always give me "undefined"
I'm currently calling the function…

Marcos Rachid
- 40
- 7
0
votes
1 answer
How to solve this error Blockchain_chaincode
Error: endorsement failure during invoke. response: status:500 message:"make sure the chaincode irscc has been successfully instantiated and try again: chaincode irscc not found"

iamve7254
- 11
- 1
- 5
0
votes
1 answer
Getting Error while instantiating the chaincode on the peer
I have installed the chaincode on the peer and it's working fine, while instantiating the chaincode I am getting the error mentioned below.
(working on the ec2 instance)
Error: could not assemble transaction, err Proposal response was not…

Shubham Jaiswal
- 570
- 5
- 11
0
votes
2 answers
Chaincode instantiation failing silently
I tried installing and instantiating the chaincode_example02 chaincode on the network I brought up by modifying the byfn script from build your first network. I am using 2 orgs with 1 peer each. I renamed the orgs.
The peer containers are coming up…

Sanjay S B
- 259
- 2
- 15
0
votes
1 answer
Can't invoke chaincode from SDK
I can invoke chaincode from my peer by the following command:
peer chaincode invoke -o coreOrderer.dip.com:7050 --tls --cafile /etc/hyperledger/tlsca.dip.com-cert.pem --tlsRootCertFiles /etc/hyperledger/fabric/tls/ca.crt -C dipchannel -n mycc…

Artem Skliarov
- 21
- 7
0
votes
1 answer
How to fix "syntax error: unexpected shim, expecting comma or )" in chaincode?
I have the chaincode, which should encrypt data and put to ledger and do query.
I have updated fabric binaries, but in other fabric samples chaincodes this line is the same and do not have any errors.
func (s *SmartContract) queryPatient(APIstub…

Aiga
- 11
- 1
0
votes
0 answers
dial `unix /host/var/run/docker.sock: connect: permission denied` hyperleadger fabric
I am trying to instantiate the chaincode using
peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n skynetchaincode -v v1 -c '{"Args":[""]}'
but geeting the following error.
Error: could not assemble transaction, err proposal…

Pandit
- 748
- 1
- 7
- 22