def get_renew_burn_info( outputs ):
    """
    There are four poutputs: the OP_RETURN, the registration (owner)
    address, the change address (i.e. from the preorderer), and the
    burn address with the renewal fee.

    Get the burn address and value
    """
    if len(outputs) < 4:
        raise Exception("Malformed renew outputs: don't have 4")

    burn_addr = virtualchain.script_hex_to_address(outputs[3]['script'])
    if burn_addr is None:
        raise Exception("Malformed renew inputs: burn output is a nonstandard script")

    op_fee = outputs[3]['value']
    return {'burn_address': burn_addr, 'op_fee': op_fee}
def get_renew_burn_info ( outputs ) : if len ( outputs ) < 4 : raise Exception ( "Malformed renew outputs: don't have 4" ) burn_addr = virtualchain . script_hex_to_address ( outputs [ 3 ] [ 'script' ] ) if burn_addr is None : raise Exception ( "Malformed renew inputs: burn output is a nonstandard script" ) op_fee = outputs [ 3 ] [ 'value' ] return { 'burn_address' : burn_addr , 'op_fee' : op_fee }
There are four poutputs: the OP_RETURN, the registration (owner)
    address, the change address (i.e. from the preorderer), and the
    burn address with the renewal fee.

    Get the burn address and value