tfchain/TFChainClient.py
def condition_get(self, height=None):
        """
        Get the latest (coin) mint condition or the (coin) mint condition at the specified block height.

        @param height: if defined the block height at which to look up the (coin) mint condition (if none latest block will be used)
        """
        # define the endpoint
        endpoint = "/explorer/mintcondition"
        if height is not None:
            if not isinstance(height, (int, str)):
                raise TypeError("invalid block height given")
            height = int(height)
            endpoint += "/%d"%(height)

        # get the mint condition
        resp = self._client.explorer_get(endpoint=endpoint)
        resp = json_loads(resp)

        try:
            # return the decoded mint condition
            return ConditionTypes.from_json(obj=resp['mintcondition'])
        except KeyError as exc:
            # return a KeyError as an invalid Explorer Response
            raise tfchain.errors.ExplorerInvalidResponse(str(exc), endpoint, resp) from exc

        Get the latest (coin) mint condition or the (coin) mint condition at the specified block height.

        @param height: if defined the block height at which to look up the (coin) mint condition (if none latest block will be used)
        
Get the latest (coin) mint condition or the (coin) mint condition at the specified block height.
Get the latest ( coin ) mint condition or the ( coin ) mint condition at the specified block height .
def condition_get(self, height=None):
        endpoint = "/explorer/mintcondition"
        if height is not None:
            if not isinstance(height, (int, str)):
                raise TypeError("invalid block height given")
            height = int(height)
            endpoint += "/%d"%(height)
        resp = self._client.explorer_get(endpoint=endpoint)
        resp = json_loads(resp)
        try:
            return ConditionTypes.from_json(obj=resp['mintcondition'])
        except KeyError as exc:
            raise tfchain.errors.ExplorerInvalidResponse(str(exc), endpoint, resp) from exc
def condition_get ( self , height = None ) : endpoint = "/explorer/mintcondition" if height is not None : if not isinstance ( height , ( int , str ) ) : raise TypeError ( "invalid block height given" ) height = int ( height ) endpoint += "/%d" % ( height ) resp = self . _client . explorer_get ( endpoint = endpoint ) resp = json_loads ( resp ) try : return ConditionTypes . from_json ( obj = resp [ 'mintcondition' ] ) except KeyError as exc : raise tfchain . errors . ExplorerInvalidResponse ( str ( exc ) , endpoint , resp ) from exc
Get the latest (coin) mint condition or the (coin) mint condition at the specified block height.
Get the latest ( coin ) mint condition or the ( coin ) mint condition at the specified block height .
"""
        Get the latest (coin) mint condition or the (coin) mint condition at the specified block height.

        @param height: if defined the block height at which to look up the (coin) mint condition (if none latest block will be used)
        """ # define the endpoint # get the mint condition # return the decoded mint condition # return a KeyError as an invalid Explorer Response
self
height
if defined the block height at which to look up the (coin) mint condition (if none latest block will be used)
if defined the block height at which to look up the ( coin ) mint condition ( if none latest block will be used )