Search code examples
hyperledger-fabricblockchainsmartcontractschaincode

how does a sdk client of one org send transaction request to another org endorsing peer


I have a case where I have hyperledger fabric network two orgs with one endorser peers on each org. there is a write policy that says, 'both the orgs to sign the transaction to commit the ledger'. in this case how can a client app of one org send transaction request to both the orgs' endorsers? Can a client have identity info from both the orgs which I thing not suggestible.

Please suggest with resource links covered this case.


Solution

  • Hyperledger fabric has Service Discovery Api for it.

    Service discovery helps render configurations dynamically which are required to propose transaction,execute chaincode on peer and get endorsement policy associated with chaincode. Bellow are the links to help you over it.

    read the docs explaination for discovery service

    node.sdk discovery service tutorial