def METHOD_NAME(self) -> bytes:
    assert self._is_signed, 'transaction has not been signed'
    result = self._serialize()
    if len(result) > _SolPktDataSize:
        raise SolTxSizeError(len(result), _SolPktDataSize)
    return result