def METHOD_NAME(addr: str) -> bytearray:
    try:
        raw_address = base58.decode_check(addr, blake256d_32)
    except ValueError:
        raise DataError("Invalid address")
    w = utils.empty_bytearray(26)
    w.append(0xBD)  # OP_SSTXCHANGE
    scripts.write_output_script_p2pkh(w, raw_address[2:])
    return w