application/docValidate.js
/**
 * Configures a object with properties to connect as a client to the blockchain network.
 * Prepare to retrieve the document from the ledger.
 * @param {string} dirWalletsTx Directory with wallet PGP.
 * @param {string} organizationName Organization name.
 * @param {string} walletName Wallet user name.
 * @param {string} transaction Transaction name.
 * @param {string} contractName Smart contract (chaincode) name.
 */
Configures a object with properties to connect as a client to the blockchain network.
Prepare to retrieve the document from the ledger.
@param {string} dirWalletsTx Directory with wallet PGP.
@param {string} organizationName Organization name.
@param {string} walletName Wallet user name.
@param {string} transaction Transaction name.
@param {string} contractName Smart contract (chaincode) name.
Configures a object with properties to connect as a client to the blockchain network . Prepare to retrieve the document from the ledger . @param { string } dirWalletsTx Directory with wallet PGP . @param { string } organizationName Organization name . @param { string } walletName Wallet user name . @param { string } transaction Transaction name . @param { string } contractName Smart contract ( chaincode ) name .
async function prepareChaincodeClientTx(dirWalletsTx, organizationName, walletName, transaction, contractName) {
    let pathOfGatewayConfig = ClientReference.chooseGatewayFromOrg(organizationName);
    let chaincodeTx = await ChaincodeClientTx.newChaincodeClientTx(dirWalletsTx, organizationName, walletName, transaction, contractName, pathOfGatewayConfig);
    return chaincodeTx;
}
async function prepareChaincodeClientTx ( dirWalletsTx , organizationName , walletName , transaction , contractName ) { let pathOfGatewayConfig = ClientReference . chooseGatewayFromOrg ( organizationName ) ; let chaincodeTx = await ChaincodeClientTx . newChaincodeClientTx ( dirWalletsTx , organizationName , walletName , transaction , contractName , pathOfGatewayConfig ) ; return chaincodeTx ; }
Configures a object with properties to connect as a client to the blockchain network.
Configures a object with properties to connect as a client to the blockchain network .