/** * get version of chaincode with this transaction action * * @return version of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDVersion() { if (isFiltered()) { return null; } String version = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { version = ccid.getVersion(); } return version; }
/** * get name of chaincode with this transaction action * * @return name of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDName() { if (isFiltered()) { return null; } String name = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { name = ccid.getName(); } return name; }
/** * get path of chaincode with this transaction action * * @return path of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDPath() { if (isFiltered()) { return null; } String path = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { path = ccid.getPath(); } return path; }
/** * get version of chaincode with this transaction action * * @return version of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDVersion() { if (isFiltered()) { return null; } String version = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { version = ccid.getVersion(); } return version; }
/** * get name of chaincode with this transaction action * * @return name of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDName() { if (isFiltered()) { return null; } String name = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { name = ccid.getName(); } return name; }
/** * get path of chaincode with this transaction action * * @return path of chaincode. Maybe null if no chaincode or if block is filtered. */ public String getChaincodeIDPath() { if (isFiltered()) { return null; } String path = null; Chaincode.ChaincodeID ccid = transactionAction.getPayload().getAction().getProposalResponsePayload(). getExtension().getChaincodeID(); if (ccid != null) { path = ccid.getPath(); } return path; }