Is there a way to get the chaincode metadata using the NodeJS or Go fabric-network SDK?
Something similar to the peer lifecycle chaincode queryinstalled
command:
{
"installed_chaincodes": [
{
"package_id": "testcc_1:75afd7c4c165c56e8b8f3bd4c53cea8b420f4d94a3d53093aa0ec0229f5c738a",
"label": "testcc_1",
"references": {
"mychannel": {
"chaincodes": [
{
"name": "testcc",
"version": "1"
}
]
}
}
}
]
}
If not, then how do clients ensure which version of the chaincode they are calling??