src/main/java/org/hyperledger/fabric/sdk/Channel.java
/**
     * query this channel for a Block by the block hash.
     * The request is sent to a random peer in the channel.
     *
     * @param blockHash the hash of the Block in the chain
     * @return the {@link BlockInfo} with the given block Hash
     * @throws InvalidArgumentException
     * @throws ProposalException
     */
query this channel for a Block by the block hash.
The request is sent to a random peer in the channel.

@param blockHash the hash of the Block in the chain
@return the  BlockInfo with the given block Hash
@throws InvalidArgumentException
@throws ProposalException
query this channel for a Block by the block hash . The request is sent to a random peer in the channel . @param blockHash the hash of the Block in the chain @return the BlockInfo with the given block Hash @throws InvalidArgumentException @throws ProposalException
public BlockInfo queryBlockByHash(byte[] blockHash) throws InvalidArgumentException, ProposalException {
        checkChannelState();
        if (blockHash == null) {
            throw new InvalidArgumentException("blockHash parameter is null.");
        }
        return queryBlockByHash(getRandomLedgerQueryPeer(), blockHash);
    }
public BlockInfo queryBlockByHash ( byte [ ] blockHash ) throws InvalidArgumentException , ProposalException { checkChannelState ( ) ; if ( blockHash == null ) { throw new InvalidArgumentException ( "blockHash parameter is null." ) ; } return queryBlockByHash ( getRandomLedgerQueryPeer ( ) , blockHash ) ; }
query this channel for a Block by the block hash.
query this channel for a Block by the block hash .