function nodeAddr(account, nodeAddresses) {
    let address
    let retrieveNodeFromList = nodeAddresses.find(obj =>
        obj.hasOwnProperty(account)
    )
    if (isNullOrUndefined(retrieveNodeFromList)) {
        throw new Error('node does not exist, please choose other nodes')
    }
    address = retrieveNodeFromList[account]
    return {
        address,
        account
    }
}
/**
 *
 * nodeAddr provides the chosen node that exist in the list of node addresses (file 0.0.101) for grpc calls.
 * @param {object} account
 * @param {Array} nodeAddresses
 * @returns object that contains the node ip and node accountID
 */
nodeAddr provides the chosen node that exist in the list of node addresses (file 0.0.101) for grpc calls.
@param {object} account
@param {Array} nodeAddresses
@returns object that contains the node ip and node accountID
nodeAddr provides the chosen node that exist in the list of node addresses ( file 0 . 0 . 101 ) for grpc calls . @param { object } account @param { Array } nodeAddresses @returns object that contains the node ip and node accountID
function nodeAddr(account, nodeAddresses) {
    let address
    let retrieveNodeFromList = nodeAddresses.find(obj =>
        obj.hasOwnProperty(account)
    )
    if (isNullOrUndefined(retrieveNodeFromList)) {
        throw new Error('node does not exist, please choose other nodes')
    }
    address = retrieveNodeFromList[account]
    return {
        address,
        account
    }
}
function nodeAddr ( account , nodeAddresses ) { let address let retrieveNodeFromList = nodeAddresses . find ( obj => obj . hasOwnProperty ( account ) ) if ( isNullOrUndefined ( retrieveNodeFromList ) ) { throw new Error ( 'node does not exist, please choose other nodes' ) } address = retrieveNodeFromList [ account ] return { address , account } }
nodeAddr provides the chosen node that exist in the list of node addresses (file 0.0.101) for grpc calls.
nodeAddr provides the chosen node that exist in the list of node addresses ( file 0 . 0 . 101 ) for grpc calls .