(self, option, channel, orderer_url, time_out="90s")
return res
Fetch a specified block, writing it to a file e.g. <channelID>.block.
        params:
            option: block option newest|oldest|config|(block number).
            channel: channel id.
            orderer_url: Ordering service endpoint.
Fetch a specified block, writing it to a file e.g. <channelID>.block.
        params:
            option: block option newest|oldest|config|(block number).
            channel: channel id.
            orderer_url: Ordering service endpoint.
Fetch a specified block writing it to a file e . g . <channelID > . block . params : option : block option newest|oldest|config| ( block number ) . channel : channel id . orderer_url : Ordering service endpoint .
def fetch(self, option, channel, orderer_url, time_out="90s"):
        """
        Fetch a specified block, writing it to a file e.g. <channelID>.block.
        params:
            option: block option newest|oldest|config|(block number).
            channel: channel id.
            orderer_url: Ordering service endpoint.
        """
        try:
            res = os.system("{} channel fetch {} -c {} -o {} --timeout {}".format(
                self.peer, option, channel, orderer_url, time_out))
        except Exception as e:
            err_msg = "fetch a specified block failed {}!".format(e)
            raise Exception(err_msg)
        res = res >> 8
        return res
def fetch ( self , option , channel , orderer_url , time_out = "90s" ) : try : res = os . system ( "{} channel fetch {} -c {} -o {} --timeout {}" . format ( self . peer , option , channel , orderer_url , time_out ) ) except Exception as e : err_msg = "fetch a specified block failed {}!" . format ( e ) raise Exception ( err_msg ) res = res >> 8 return res